Skip to content

Commit

Permalink
Update force_text -> force_str for Django 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed May 8, 2024
1 parent 99c80e4 commit 8169f72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgweb/core/templatetags/pgmarkdown.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Filter wrapping the python markdown library into a django template filter
from django import template
from django.utils.encoding import force_text
from django.utils.encoding import force_str
from django.utils.safestring import mark_safe

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

return mark_safe(pgmarkdown(
force_text(value),
force_str(value),
allow_images=allow_images,
allow_relative_links=allow_relative_links,
))

0 comments on commit 8169f72

Please sign in to comment.