Fixed a bug in the new template filter

This commit is contained in:
Raphael Michel
2015-07-19 13:29:02 +02:00
parent 7e1121e870
commit 42b3f9ff51

View File

@@ -9,6 +9,8 @@ register = template.Library()
@register.filter(name='togglesum', needs_autoescape=True)
def cut(value, autoescape=True):
if not value:
return ''
if autoescape:
esc = conditional_escape
else: