Esempio n. 1
0
class TestComplexImageModel(pymodm.MongoModel):
    image = ImageField()
    inner = pymodm.fields.EmbeddedDocumentField(TestImageFieldEmbeddedModel)
    nested_inner = pymodm.fields.EmbeddedDocumentField(TestNestedEmbeddedDoc)
    inner_list = pymodm.fields.EmbeddedDocumentListField(
        TestImageFieldEmbeddedModel)
    nested_inner_list = pymodm.fields.EmbeddedDocumentListField(
        TestNestedEmbeddedDoc)
    objects = ImageManager()
Esempio n. 2
0
 class GroupedImageModel(pymodm.MongoModel):
     image = ImageField(group='mygroup')
Esempio n. 3
0
 class ImageFieldEmbeddedModelSubclass(TestImageFieldEmbeddedModel):
     other_image = ImageField()
Esempio n. 4
0
class TestImageFieldEmbeddedModel(pymodm.EmbeddedMongoModel):
    image = ImageField()
Esempio n. 5
0
 class ImageFieldModelSubclass(TestImageFieldModel):
     other_image = ImageField()
     objects = ImageManager()
Esempio n. 6
0
class TestImageFieldModel(pymodm.MongoModel):
    image = ImageField()
    objects = ImageManager()