mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
SizedField: Do not crash without max_size
This commit is contained in:
@@ -98,7 +98,7 @@ class ClearableBasenameFileInput(forms.ClearableFileInput):
|
||||
class SizeFileField(forms.FileField):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.max_size = kwargs.pop("max_size")
|
||||
self.max_size = kwargs.pop("max_size", None)
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user