Skip to content

Commit

Permalink
fix(validators): Add 'run_validators' method
Browse files Browse the repository at this point in the history
Closes Chive#23
  • Loading branch information
DmytroLitvinov committed Mar 16, 2022
1 parent ce9a5a2 commit 0603adf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions multiupload/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ def validate(self, value):
}
)

def run_validators(self, value):
value = value or []

for item in value:
super().run_validators(item)


class MultiFileField(MultiUploadMetaField):
""" Handles plain files. """
Expand Down

0 comments on commit 0603adf

Please sign in to comment.