mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Don't ignore additional fields when creating form
Fixes regression from 2f88a1bff2
This commit is contained in:
parent
5d299f6222
commit
4599a22bfc
1 changed files with 2 additions and 2 deletions
|
|
@ -89,9 +89,9 @@ class ConstanceForm(forms.Form):
|
|||
|
||||
for name, options in settings.CONFIG.items():
|
||||
default, help_text = options[0], options[1]
|
||||
if len(options) == 3 and options[2] not in settings.ADDITIONAL_FIELDS:
|
||||
if len(options) == 3:
|
||||
config_type = options[2]
|
||||
if not isinstance(options[0], config_type):
|
||||
if config_type not in settings.ADDITIONAL_FIELDS and not isinstance(options[0], config_type):
|
||||
raise ImproperlyConfigured(_("Default value type must be "
|
||||
"equal to declared config "
|
||||
"parameter type. Please fix "
|
||||
|
|
|
|||
Loading…
Reference in a new issue