-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
hi,
love the app.
Work with validators was strange for me since app sends all data as one list while validators usually expect single element so I used custom interface for validators defined as an argument for MultiuploadField.
Since version 1.11 django claim to use default validator for ImageField and in one of early releases they actually set it and it broke MultiImageField and such.
Problem is the same: MultiuploadField send list to Image validators while they expect single element so something like
def run_validators(self, value):
value = value or []
for item in value:
super(MultiUploadMetaField, self).run_validators(item)
will allow MultiUploadMetaField to work out of box.
cheers o/
Sinkler, aishelre, MaziyarMK, AhmedRS97, Safrone and 2 more
Metadata
Metadata
Assignees
Labels
No labels