Skip to content

Commit 29b8ea8

Browse files
author
Ronny Vedrilla
committed
Bugfix: FormMutation was always causing boolean fields to be required
1 parent ea2cd98 commit 29b8ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/forms/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def convert_form_field_to_int(field):
4343

4444
@convert_form_field.register(forms.BooleanField)
4545
def convert_form_field_to_boolean(field):
46-
return Boolean(description=field.help_text, required=True)
46+
return Boolean(description=field.help_text, required=field.required)
4747

4848

4949
@convert_form_field.register(forms.NullBooleanField)

0 commit comments

Comments
 (0)