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()
class GroupedImageModel(pymodm.MongoModel): image = ImageField(group='mygroup')
class ImageFieldEmbeddedModelSubclass(TestImageFieldEmbeddedModel): other_image = ImageField()
class TestImageFieldEmbeddedModel(pymodm.EmbeddedMongoModel): image = ImageField()
class ImageFieldModelSubclass(TestImageFieldModel): other_image = ImageField() objects = ImageManager()
class TestImageFieldModel(pymodm.MongoModel): image = ImageField() objects = ImageManager()