From 4436adb621fd60b72e6b7bf63101aa77500a3ffc Mon Sep 17 00:00:00 2001 From: Graham Herceg Date: Mon, 1 Jan 2024 14:00:50 -0500 Subject: [PATCH] Replace force_text with force_str --- couchdbkit/ext/django/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchdbkit/ext/django/schema.py b/couchdbkit/ext/django/schema.py index 2e9529d..1513cd1 100644 --- a/couchdbkit/ext/django/schema.py +++ b/couchdbkit/ext/django/schema.py @@ -30,7 +30,7 @@ from django.conf import settings from django.utils.text import format_lazy from django.utils.translation import activate, deactivate_all, get_language -from django.utils.encoding import smart_str, force_text +from django.utils.encoding import smart_str, force_str from couchdbkit import schema from couchdbkit.ext.django.loading import get_schema, register_schema, \ @@ -109,7 +109,7 @@ def verbose_name_raw(self): """ lang = get_language() deactivate_all() - raw = force_text(self.verbose_name) + raw = force_str(self.verbose_name) activate(lang) return raw verbose_name_raw = property(verbose_name_raw)