mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Set enabled_langcodes in I18nFormFields in ProviderForm instances
This commit is contained in:
@@ -226,6 +226,8 @@ class ProviderForm(SettingsForm):
|
||||
v._required = v.required
|
||||
v.required = False
|
||||
v.widget.is_required = False
|
||||
if isinstance(v, I18nFormField):
|
||||
v.widget.enabled_langcodes = self.obj.settings.get('locales')
|
||||
|
||||
def clean(self):
|
||||
cleaned_data = super().clean()
|
||||
|
||||
Reference in New Issue
Block a user