mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fixed a bug in the new template filter
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user