Skip to content

Commit f616b59

Browse files
committed
Updating form converter method names to make more sense
1 parent 3a23c1f commit f616b59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene/contrib/django/form_converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ def convert_form_field_to_float(field):
6060

6161
@convert_form_field.register(forms.ModelMultipleChoiceField)
6262
@convert_form_field.register(GlobalIDMultipleChoiceField)
63-
def convert_form_field_to_list_or_connection(field):
63+
def convert_form_field_to_list(field):
6464
return List(ID())
6565

6666

6767
@convert_form_field.register(forms.ModelChoiceField)
6868
@convert_form_field.register(GlobalIDFormField)
69-
def convert_form_field_to_djangomodel(field):
69+
def convert_form_field_to_id(field):
7070
return ID()

0 commit comments

Comments
 (0)