Bugfix: FormMutation was always causing boolean fields to be required

This commit is contained in:
Ronny Vedrilla 2019-04-05 14:27:53 +02:00
parent ea2cd9894f
commit 29b8ea8398

View File

@ -43,7 +43,7 @@ def convert_form_field_to_int(field):
@convert_form_field.register(forms.BooleanField)
def convert_form_field_to_boolean(field):
return Boolean(description=field.help_text, required=True)
return Boolean(description=field.help_text, required=field.required)
@convert_form_field.register(forms.NullBooleanField)