From 2f88a1bff2d3741cd18e1b47fe8c8c1d882795f4 Mon Sep 17 00:00:00 2001 From: Camilo Nova Date: Wed, 12 Oct 2016 16:59:56 -0500 Subject: [PATCH] Ignore fields in CONSTANCE_ADDITIONAL_FIELDS when casting a type --- constance/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constance/admin.py b/constance/admin.py index 0ed2473..45fafd5 100644 --- a/constance/admin.py +++ b/constance/admin.py @@ -88,7 +88,7 @@ class ConstanceForm(forms.Form): for name, options in settings.CONFIG.items(): default, help_text = options[0], options[1] - if len(options) == 3: + if len(options) == 3 and options[2] not in settings.ADDITIONAL_FIELDS: config_type = options[2] if not isinstance(options[0], config_type): raise ImproperlyConfigured(_("Default value type must be "