forked from CGM_Public/pretix_original
forms: fix image file upload in CachedFileField
This commit is contained in:
committed by
Raphael Michel
parent
c6fa19d771
commit
2d5d27e950
@@ -229,7 +229,7 @@ class ExtValidationMixin:
|
||||
raise forms.ValidationError(_("Filetype not allowed!"))
|
||||
|
||||
if ext in IMAGE_EXTS:
|
||||
validate_uploaded_file_for_valid_image(data)
|
||||
validate_uploaded_file_for_valid_image(data if isinstance(data, UploadedFile) else data.file)
|
||||
|
||||
return data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user