Skip to content

Commit

Permalink
Fix force_str deprecation warning (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhelyabuzhsky committed Jan 29, 2020
1 parent 62ecbae commit 8ec4562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphene_django/converter.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -30,7 +30,7 @@


def convert_choice_name(name):
name = to_const(force_text(name))
name = to_const(force_str(name))
try:
assert_valid_name(name)
except AssertionError:
Expand Down

0 comments on commit 8ec4562

Please sign in to comment.