We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eacd773 commit 4dd20b4Copy full SHA for 4dd20b4
src/bootstrap4/text.py
@@ -1,14 +1,11 @@
1
-try:
2
- from django.utils.encoding import force_text
3
-except ImportError:
4
- from django.utils.encoding import force_unicode as force_text
+from django.utils.encoding import force_str
5
6
7
def text_value(value):
8
"""Force a value to text, render None as an empty string."""
9
if value is None:
10
return ""
11
- return force_text(value)
+ return force_str(value)
12
13
14
def text_concat(*args, **kwargs):
0 commit comments