forked from CGM_Public/pretix_original
Only run new validation on newly uploaded files
This commit is contained in:
@@ -217,7 +217,7 @@ class ExtValidationMixin:
|
||||
|
||||
def clean(self, *args, **kwargs):
|
||||
data = super().clean(*args, **kwargs)
|
||||
if isinstance(data, File):
|
||||
if isinstance(data, UploadedFile):
|
||||
filename = data.name
|
||||
ext = os.path.splitext(filename)[1]
|
||||
ext = ext.lower()
|
||||
|
||||
Reference in New Issue
Block a user