Skip to content

Commit 8169f72

Browse files
committed
Update force_text -> force_str for Django 4.2
1 parent 99c80e4 commit 8169f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgweb/core/templatetags/pgmarkdown.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Filter wrapping the python markdown library into a django template filter
22
from django import template
3-
from django.utils.encoding import force_text
3+
from django.utils.encoding import force_str
44
from django.utils.safestring import mark_safe
55

66
from pgweb.util.markup import pgmarkdown
@@ -23,7 +23,7 @@ def markdown(value, args=''):
2323
raise ValueError("Invalid argument to markdown: {}".format(a))
2424

2525
return mark_safe(pgmarkdown(
26-
force_text(value),
26+
force_str(value),
2727
allow_images=allow_images,
2828
allow_relative_links=allow_relative_links,
2929
))

0 commit comments

Comments
 (0)