mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-05-13 12:23:48 +03:00
Update graphene_django/converter.py
Co-Authored-By: Syrus Akbary <me@syrusakbary.com>
This commit is contained in:
parent
8fb8b17078
commit
82fcb37d8b
|
@ -75,7 +75,7 @@ def generate_enum_name(django_model_meta, field):
|
||||||
):
|
):
|
||||||
name = graphene_settings.DJANGO_CHOICE_FIELD_ENUM_CUSTOM_NAME(field)
|
name = graphene_settings.DJANGO_CHOICE_FIELD_ENUM_CUSTOM_NAME(field)
|
||||||
elif graphene_settings.DJANGO_CHOICE_FIELD_ENUM_V3_NAMING is True:
|
elif graphene_settings.DJANGO_CHOICE_FIELD_ENUM_V3_NAMING is True:
|
||||||
name = "DjangoModel{app_label}{object_name}{field_name}Choices".format(
|
name = "{app_label}{object_name}{field_name}Choices".format(
|
||||||
app_label=to_camel_case(django_model_meta.app_label.title()),
|
app_label=to_camel_case(django_model_meta.app_label.title()),
|
||||||
object_name=django_model_meta.object_name,
|
object_name=django_model_meta.object_name,
|
||||||
field_name=to_camel_case(field.name.title()),
|
field_name=to_camel_case(field.name.title()),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user