X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=tools%2Ftemplatetags%2Flist.py;h=87d797684e1deebbc7e36a55bf5e2708fe598d20;hb=926e20fad179f5bf6a1ddf4e2fdbc672c175a7af;hp=e0111b00e4b03254915299a1844525a7cbead7d6;hpb=78f556d0489510dc4b4cbcdb1980d2d2e7343b44;p=matthijs%2Fprojects%2Fxerxes.git diff --git a/tools/templatetags/list.py b/tools/templatetags/list.py index e0111b0..87d7976 100644 --- a/tools/templatetags/list.py +++ b/tools/templatetags/list.py @@ -1,6 +1,8 @@ from django import template from django.template.defaultfilters import unordered_list from django.utils.safestring import mark_safe +from django.utils.encoding import force_unicode +from django.utils.translation import ugettext as _ """ Template tags and filters for working with lists. @@ -26,3 +28,27 @@ def list_or_value(list, autoescape=None): else: return mark_safe('