Skip to content

validation #23

@marojenka

Description

@marojenka

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions