X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c44816fb6561b51cb9fcbdf1bf272ffad8571dca..39b99a8a8920dca527eb823b860303103389fd91:/src/ajaxable/templatetags/ajaxable_tags.py diff --git a/src/ajaxable/templatetags/ajaxable_tags.py b/src/ajaxable/templatetags/ajaxable_tags.py index 55059e55b..31897d1b0 100644 --- a/src/ajaxable/templatetags/ajaxable_tags.py +++ b/src/ajaxable/templatetags/ajaxable_tags.py @@ -23,7 +23,7 @@ def placeholdized_ul(form): @register.filter def pretty_field(field, template=None): if template is None: - template = ''' + template = u'''
  • %(errors)s @@ -32,14 +32,14 @@ def pretty_field(field, template=None): return mark_safe(template % { 'errors': field.errors, 'input': field, - 'label': force_unicode(field.label), + 'label': ('*' if field.field.required else '') + force_unicode(field.label), 'helptext': force_unicode(field.help_text), }) @register.filter def pretty_checkbox(field): - return pretty_field(field, template=''' + return pretty_field(field, template=u'''
  • %(errors)s