Skip to content

Commit

Permalink
Merge pull request #81 from dimagi/gh/fix-force-text
Browse files Browse the repository at this point in the history
Replace force_text with force_str
  • Loading branch information
gherceg authored Jan 2, 2024
2 parents 84e3a35 + 4436adb commit 6f2af9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions couchdbkit/ext/django/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6f2af9c

Please sign in to comment.