Example #1
0
class CityEmptyField(Model):
    text = TextField()
    number = NumberField()
    date = DateTime()
    bool = BooleanField()
    geo_point = GeoPoint()
    list = ListField()
    map = MapField()
    nested = NestedModel(NModel)
    ref = ReferenceField(RModel)
Example #2
0
class DeepNestedUni3(Model):
    dept = TextField()
    student = NestedModel(DeepNestedStudent3, required=True)
Example #3
0
class DeepNestedStudent3(Model):
    uni = TextField(required=True)
    user = NestedModel(DeepNestedUser3)
Example #4
0
class DeepNestedUni2(Model):
    dept = TextField()
    student = NestedModel(DeepNestedStudent2)
Example #5
0
class DirectNestedModel(Model):
    age = NumberField()
    user = NestedModel(DeepDirectNestedModel)
Example #6
0
 class CreateModelFromDict2(Model):
     name = TextField()
     nested_parent = NestedModel(DictParent)
Example #7
0
 class ConvertModelIntoDict(Model):
     name = TextField()
     nested_parent = NestedModel(NestedParent)
Example #8
0
class NFLevel6(Model):
    dept = TextField()
    lev5 = NestedModel(NFLevel5, column_name='lev5')
Example #9
0
class NFLevel5(Model):
    age = NumberField()
    lev4 = NestedModel(NFLevel4, column_name='lev4')
Example #10
0
class NestedModelMain(Model):
    age = NumberField()
    user = NestedModel(NestedModelFilter)
Example #11
0
class NFLevel3(Model):
    dept = TextField()
    lev2 = NestedModel(NFLevel2)
Example #12
0
class NFLevel2(Model):
    age = NumberField()
    lev1 = NestedModel(NFLevel1)
Example #13
0
class NestedModelMain2(Model):
    age = NumberField()
    user = NestedModel(NestedModelFilter2, column_name='something')
Example #14
0
class Student(Model):
    address = TextField()
    user = NestedModel(User)