summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templatetags
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-10-05 15:01:59 +0200
committerAurélien Bompard <aurelien@bompard.org>2012-10-05 15:01:59 +0200
commitc7570addec98c4e7695d83202650b9296e47c957 (patch)
tree147cd9e6e981acdd11efd6fd3950d8f936f8ae42 /hyperkitty/templatetags
parentcd1a2d5f2ec738ab2f17c86dcabe8733a682aa4f (diff)
downloadhyperkitty-c7570addec98c4e7695d83202650b9296e47c957.tar.gz
hyperkitty-c7570addec98c4e7695d83202650b9296e47c957.tar.xz
hyperkitty-c7570addec98c4e7695d83202650b9296e47c957.zip
Improve appearance
Diffstat (limited to 'hyperkitty/templatetags')
-rw-r--r--hyperkitty/templatetags/storm.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/hyperkitty/templatetags/storm.py b/hyperkitty/templatetags/storm.py
index 81fd4aa..a116430 100644
--- a/hyperkitty/templatetags/storm.py
+++ b/hyperkitty/templatetags/storm.py
@@ -1,7 +1,13 @@
from django import template
+from hyperkitty.lib import stripped_subject
+
register = template.Library()
@register.filter(name="count")
def count(expr):
return expr.count()
+
+@register.filter(name="strip_subject")
+def count(subject, mlist):
+ return stripped_subject(mlist, subject)