Use format instead of f strings

This commit is contained in:
Jonathan Kim 2020-01-22 11:52:40 +00:00
parent cad37176a6
commit 8fb8b17078

View File

@ -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