X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a6db1ef5159ff618a9d1a78ff14fd705a106c130..6280673f35e13e75e81c5b7821bd2a44a1831eab:/apps/ajaxable/templatetags/ajaxable_tags.py diff --git a/apps/ajaxable/templatetags/ajaxable_tags.py b/apps/ajaxable/templatetags/ajaxable_tags.py index 2f9a8c4c8..351e9f13d 100644 --- a/apps/ajaxable/templatetags/ajaxable_tags.py +++ b/apps/ajaxable/templatetags/ajaxable_tags.py @@ -1,7 +1,17 @@ +# -*- 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 ajaxable.utils import placeholdized register = template.Library() + @register.filter def placeholdize(form): return placeholdized(form) + + +@register.filter +def placeholdized_ul(form): + return placeholdized(form).as_ul()