mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-24 02:52:04 +03:00
Use format instead of f strings
This commit is contained in:
parent
cad37176a6
commit
8fb8b17078
|
@ -533,7 +533,7 @@ class TestDjangoObjectType:
|
|||
|
||||
def test_django_objecttype_choices_custom_enum_name(self, PetModel):
|
||||
def custom_name(field):
|
||||
return f"CustomEnum{field.name.title()}"
|
||||
return "CustomEnum{}".format(field.name.title())
|
||||
|
||||
graphene_settings.DJANGO_CHOICE_FIELD_ENUM_CUSTOM_NAME = custom_name
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user