mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-25 19:43:51 +03:00
Pep8 fixes
This commit is contained in:
parent
a818a25a00
commit
1cb9c66f99
|
@ -141,7 +141,7 @@ def convert_serializer_field_to_list_of_string(field):
|
|||
|
||||
|
||||
@get_graphene_type_from_serializer_field.register(serializers.ChoiceField)
|
||||
def convert_serializer_field_to_list_of_string(field):
|
||||
#enums require a name
|
||||
def convert_serializer_field_to_enum(field):
|
||||
# enums require a name
|
||||
name = field.field_name or field.source or 'Choices'
|
||||
return convert_choices_to_named_enum_with_descriptions(name, field.choices)
|
||||
|
|
Loading…
Reference in New Issue
Block a user