Here is what I'm really trying to do:







*class MyClass(models.Model):    CLASS_TYPE = (('field1', 'Field1'), ('field2', 
'Field2'))    type = models.CharField(max_length=12, choices=CLASS_TYPE)    
name = models.CharField(max_length=10)    set = 
models.BooleanField(default=False)    isset = 
models.BooleanField(default=False)    enable = 
models.BooleanField(default=True)    source = models.ForeignKey(Source)*


Then I could do something like MyClass.objects

Does web2py have a similar function?



On Sunday, January 1, 2017 at 2:15:46 PM UTC-5, LoveWeb2py wrote:
>
> I'm noticing a lot of different syntax such as the ManyToMany model, 
> self.save(), and general layout difference.
>
> Does anyone know if there is a guide to port a django app into web2py or 
> do I just need to learn django a little better?
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to