Skip to content

Commit

Permalink
Add mark_safe to INDEX_MESSAGE and ALL_PAGES_MESSAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
znick committed Mar 2, 2024
1 parent 9819fcb commit 68a7f74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions anytask/index/templatetags/index_messages.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from django import template
from django.conf import settings
from django.utils.html import mark_safe

register = template.Library()


@register.simple_tag
def index_message():
return getattr(settings, 'INDEX_MESSAGE', '')
return mark_safe(getattr(settings, 'INDEX_MESSAGE', ''))


@register.simple_tag
def all_pages_message():
return getattr(settings, 'ALL_PAGES_MESSAGE', '')
return mark_safe(getattr(settings, 'ALL_PAGES_MESSAGE', ''))

0 comments on commit 68a7f74

Please sign in to comment.