mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
forms: fix bound data retrieval of CachedFile
when re-submitting a form a second time, the cached file got lost
This commit is contained in:
committed by
Raphael Michel
parent
3129253eef
commit
c6fa19d771
@@ -270,6 +270,9 @@ class CachedFileField(ExtFileField):
|
||||
cf.save()
|
||||
data._uploaded_to = cf
|
||||
return cf
|
||||
if isinstance(data, CachedFile):
|
||||
return data
|
||||
|
||||
return super().bound_data(data, initial)
|
||||
|
||||
def clean(self, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user