mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
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