We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99c80e4 commit 8169f72Copy full SHA for 8169f72
pgweb/core/templatetags/pgmarkdown.py
@@ -1,6 +1,6 @@
1
# Filter wrapping the python markdown library into a django template filter
2
from django import template
3
-from django.utils.encoding import force_text
+from django.utils.encoding import force_str
4
from django.utils.safestring import mark_safe
5
6
from pgweb.util.markup import pgmarkdown
@@ -23,7 +23,7 @@ def markdown(value, args=''):
23
raise ValueError("Invalid argument to markdown: {}".format(a))
24
25
return mark_safe(pgmarkdown(
26
- force_text(value),
+ force_str(value),
27
allow_images=allow_images,
28
allow_relative_links=allow_relative_links,
29
))
0 commit comments