示例#1
0
 class CollectionTest(Collection):
     string_attr = StringField()
     integer_attr = IntegerField()
     bool_attr = BooleanField()
     float_attr = FloatField()
     list_attr = ListField()
     object_attr = ObjectField()
     object_id_attr = ObjectIdField()
     unknow_object = StringField()
示例#2
0
class CollectionTest(Collection):
    __collection__ = "collection_test"

    _id = ObjectIdField()
    string_attr = StringField()
示例#3
0
 class CollectionTest(Collection):
     should_be_value = StringField()
示例#4
0
 class CollectionTest(Collection):
     string_attr = StringField()