Beispiel #1
0
class Group(TestRedisModel):
    namespace = 'contrib-collection'
    collection_manager = ExtendedCollectionManager

    id = fields.AutoPKField()
    name = fields.InstanceHashField(indexable=True)
    active = fields.InstanceHashField(indexable=True, default=1)
    public = fields.InstanceHashField(indexable=True, default=1)
Beispiel #2
0
 class Person(TestRedisModel):
     namespace = 'collection'
     id = fields.AutoPKField()
     name = fields.StringField(indexable=True)
Beispiel #3
0
 class InvalidAutoPkModel(self.RedefinedAutoPkModel):
     uid = fields.AutoPKField()
Beispiel #4
0
 class RedefinedAutoPkModel(AutoPkModel):
     id = fields.AutoPKField()
Beispiel #5
0
 class BoatWithNewPk(Boat):
     namespace = Boat.namespace + 'values_list'
     id = fields.AutoPKField()
Beispiel #6
0
 class BoatWithNewPk(Boat):
     id = fields.AutoPKField()