X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e7d557155e2cd195f975e4559c353be5f28d7d66..333f7cc2ab4d123e4ffddd4f09371d06750b3631:/src/ajaxable/templatetags/ajaxable_tags.py?ds=sidebyside diff --git a/src/ajaxable/templatetags/ajaxable_tags.py b/src/ajaxable/templatetags/ajaxable_tags.py index c262a92c3..2d980f278 100644 --- a/src/ajaxable/templatetags/ajaxable_tags.py +++ b/src/ajaxable/templatetags/ajaxable_tags.py @@ -1,11 +1,12 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django import template +from django.utils.encoding import force_text from django.utils.safestring import mark_safe - from ajaxable.utils import placeholdized + + register = template.Library() @@ -26,8 +27,14 @@ def pretty_field(field, template=None):