From 0603adfb5ef12b317869e2523be9c1b584d03be4 Mon Sep 17 00:00:00 2001 From: Dmytro Litvinov Date: Wed, 16 Mar 2022 08:16:28 +0200 Subject: [PATCH] fix(validators): Add 'run_validators' method Closes #23 --- multiupload/fields.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/multiupload/fields.py b/multiupload/fields.py index 0310198..4200736 100644 --- a/multiupload/fields.py +++ b/multiupload/fields.py @@ -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. """