예제 #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)
예제 #2
0
class DeepNestedUni3(Model):
    dept = TextField()
    student = NestedModel(DeepNestedStudent3, required=True)
예제 #3
0
class DeepNestedStudent3(Model):
    uni = TextField(required=True)
    user = NestedModel(DeepNestedUser3)
예제 #4
0
class DeepNestedUni2(Model):
    dept = TextField()
    student = NestedModel(DeepNestedStudent2)
예제 #5
0
class DirectNestedModel(Model):
    age = NumberField()
    user = NestedModel(DeepDirectNestedModel)
예제 #6
0
 class CreateModelFromDict2(Model):
     name = TextField()
     nested_parent = NestedModel(DictParent)
예제 #7
0
 class ConvertModelIntoDict(Model):
     name = TextField()
     nested_parent = NestedModel(NestedParent)
예제 #8
0
class NFLevel6(Model):
    dept = TextField()
    lev5 = NestedModel(NFLevel5, column_name='lev5')
예제 #9
0
class NFLevel5(Model):
    age = NumberField()
    lev4 = NestedModel(NFLevel4, column_name='lev4')
예제 #10
0
class NestedModelMain(Model):
    age = NumberField()
    user = NestedModel(NestedModelFilter)
예제 #11
0
class NFLevel3(Model):
    dept = TextField()
    lev2 = NestedModel(NFLevel2)
예제 #12
0
class NFLevel2(Model):
    age = NumberField()
    lev1 = NestedModel(NFLevel1)
예제 #13
0
class NestedModelMain2(Model):
    age = NumberField()
    user = NestedModel(NestedModelFilter2, column_name='something')
예제 #14
0
class Student(Model):
    address = TextField()
    user = NestedModel(User)