X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/93da6796796d43def17c8adde0f194489cc14b01..94a4fcc7ab9e1713dc2defc8b35c875fc90f6fa5:/src/ajaxable/templatetags/ajaxable_tags.py diff --git a/src/ajaxable/templatetags/ajaxable_tags.py b/src/ajaxable/templatetags/ajaxable_tags.py deleted file mode 100644 index 72b9baad4..000000000 --- a/src/ajaxable/templatetags/ajaxable_tags.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- 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.safestring import mark_safe - -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() - - -@register.filter -def pretty_field(field, template=None): - if template is None: - template = ''' -