mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Correctly process missing, redacted data (Fix PRETIXEU-23M)
This commit is contained in:
@@ -78,7 +78,7 @@ class SettingsForm(i18nfield.forms.I18nFormMixin, HierarkeyForm):
|
||||
|
||||
def save(self):
|
||||
for k, v in self.cleaned_data.items():
|
||||
if isinstance(self.fields[k], SecretKeySettingsField) and self.cleaned_data.get(k) == SECRET_REDACTED:
|
||||
if isinstance(self.fields.get(k), SecretKeySettingsField) and self.cleaned_data.get(k) == SECRET_REDACTED:
|
||||
self.cleaned_data[k] = self.initial[k]
|
||||
return super().save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user