pytask/templatetags/browse_helpers.py
changeset 547 1bfa67f465b4
parent 546 6393b77c3c68
--- a/pytask/templatetags/browse_helpers.py	Tue Feb 01 15:02:52 2011 +0530
+++ b/pytask/templatetags/browse_helpers.py	Tue Feb 01 15:03:24 2011 +0530
@@ -47,3 +47,13 @@
     return {
       'message': message,
       }
+
+@register.inclusion_tag('templatetags/_as_tags.html')
+def as_tags(tags):
+    """Returns a context dictionary containing the fields necessary
+    to render list of tags.
+    """
+
+    return {
+      'tags': tags,
+      }