diff --git a/graphene_django/converter.py b/graphene_django/converter.py index b59c906..8b93d17 100644 --- a/graphene_django/converter.py +++ b/graphene_django/converter.py @@ -1,6 +1,6 @@ from collections import OrderedDict from django.db import models -from django.utils.encoding import force_text +from django.utils.encoding import force_str from graphene import ( ID, @@ -30,7 +30,7 @@ singledispatch = import_single_dispatch() def convert_choice_name(name): - name = to_const(force_text(name)) + name = to_const(force_str(name)) try: assert_valid_name(name) except AssertionError: