From 9a00c8c7fee6efaddf69458c978352f1ca6167d3 Mon Sep 17 00:00:00 2001 From: Yair Silbermintz Date: Wed, 1 Dec 2021 12:51:52 -0500 Subject: [PATCH] Replace calls to deprecated methods --- graphene_django/utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene_django/utils/utils.py b/graphene_django/utils/utils.py index b1c9a7d..ff3b7f3 100644 --- a/graphene_django/utils/utils.py +++ b/graphene_django/utils/utils.py @@ -3,7 +3,7 @@ import inspect import six from django.db import connection, models, transaction from django.db.models.manager import Manager -from django.utils.encoding import force_text +from django.utils.encoding import force_str from django.utils.functional import Promise from graphene.utils.str_converters import to_camel_case @@ -26,7 +26,7 @@ def isiterable(value): def _camelize_django_str(s): if isinstance(s, Promise): - s = force_text(s) + s = force_str(s) return to_camel_case(s) if isinstance(s, six.string_types) else s