Skip to content

Commit 8ec4562

Browse files
Fix force_str deprecation warning (#858)
1 parent 62ecbae commit 8ec4562

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_django/converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from collections import OrderedDict
22
from django.db import models
3-
from django.utils.encoding import force_text
3+
from django.utils.encoding import force_str
44

55
from graphene import (
66
ID,
@@ -30,7 +30,7 @@
3030

3131

3232
def convert_choice_name(name):
33-
name = to_const(force_text(name))
33+
name = to_const(force_str(name))
3434
try:
3535
assert_valid_name(name)
3636
except AssertionError:

0 commit comments

Comments
 (0)