mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Fix parameter ordering
This commit is contained in:
parent
bced16bfc7
commit
4fc8fdd3d0
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class ConstanceForm(forms.Form):
|
|||
default, help_text = options[0], options[1]
|
||||
if len(options) == 3:
|
||||
config_type = options[2]
|
||||
if not isinstance(config_type, type(options[0])):
|
||||
if 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