Skip to content

Commit 9a00c8c

Browse files
authored
Replace calls to deprecated methods
1 parent d52b18a commit 9a00c8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_django/utils/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import six
44
from django.db import connection, models, transaction
55
from django.db.models.manager import Manager
6-
from django.utils.encoding import force_text
6+
from django.utils.encoding import force_str
77
from django.utils.functional import Promise
88

99
from graphene.utils.str_converters import to_camel_case
@@ -26,7 +26,7 @@ def isiterable(value):
2626

2727
def _camelize_django_str(s):
2828
if isinstance(s, Promise):
29-
s = force_text(s)
29+
s = force_str(s)
3030
return to_camel_case(s) if isinstance(s, six.string_types) else s
3131

3232

0 commit comments

Comments
 (0)