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 e34e33d commit 2670a21Copy full SHA for 2670a21
martor/utils.py
@@ -2,7 +2,7 @@
2
from __future__ import unicode_literals
3
4
from django.utils.functional import Promise
5
-from django.utils.encoding import force_text
+from django.utils.encoding import force_str
6
from django.core.serializers.json import DjangoJSONEncoder
7
8
import markdown
@@ -56,5 +56,5 @@ class LazyEncoder(DjangoJSONEncoder):
56
57
def default(self, obj):
58
if isinstance(obj, Promise):
59
- return force_text(obj)
+ return force_str(obj)
60
return super(LazyEncoder, self).default(obj)
0 commit comments