mirror of
https://github.com/jazzband/django-constance.git
synced 2026-04-23 16:34:42 +00:00
Use better translated string.
This commit is contained in:
parent
abd42df304
commit
2cb825f3f6
1 changed files with 5 additions and 3 deletions
|
|
@ -70,9 +70,11 @@ class ConstanceForm(forms.Form):
|
|||
config_type = type(default)
|
||||
if config_type not in FIELDS:
|
||||
raise ImproperlyConfigured(_("Constance doesn't support "
|
||||
"config values of the type %s. "
|
||||
"Please fix the value of '%s'.")
|
||||
% (config_type, name))
|
||||
"config values of the type "
|
||||
"%(config_type)s. Please fix "
|
||||
"the value of '%(name)s'.")
|
||||
% {'config_type': config_type,
|
||||
'name': name})
|
||||
field_class, kwargs = FIELDS[config_type]
|
||||
self.fields[name] = field_class(label=name, **kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue