Skip to content

Commit

Permalink
Merge pull request #22 from MounirMesselmeni/patch-1
Browse files Browse the repository at this point in the history
Fix force_text import error on Django 4.0
  • Loading branch information
ralphje authored Apr 4, 2022
2 parents 30ea407 + f100f62 commit b994cc8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internationalflavor/forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import locale
from django import forms
from django.utils.encoding import force_text

try:
from django.utils.encoding import force_text
except ImportError:
from django.utils.encoding import force_str as force_text


def _compare_locale_str(value):
Expand Down

0 comments on commit b994cc8

Please sign in to comment.