general: use "bool" as type name for booleans, to match wcs (#17433)

This commit is contained in:
Frédéric Péters 2017-07-07 14:10:45 +02:00
parent d32a09c832
commit 0b401e42f3
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ class ConfigJsonForm(forms.ModelForm):
field_classes = {
'string': forms.CharField,
'boolean': forms.BooleanField,
'bool': forms.BooleanField,
}
for field in self.formdef:
field_class = field_classes.get(field['type'], forms.CharField)

View File

@ -514,7 +514,7 @@ def test_edit_config_json_cell(app, admin_user):
},
{
'label': 'Test bool',
'type': 'boolean',
'type': 'bool',
'varname': 'test2',
'required': False,
},