Commit 433a85f6 authored by chirac's avatar chirac

Merge branch 'python2_templatetag' into 'dev'

templatetags python2 complient

See merge request federez/re2o!248
parents 6b484da4 e797eb89
......@@ -227,7 +227,9 @@ def acl_history_filter(parser, token):
def acl_app_filter(parser, token):
"""Templatetag for acl checking on applications."""
tag_name, *app_name = token.split_contents()
contents = token.split_contents()
tag_name = contents[0]
app_name = contents[1:]
except ValueError:
raise template.TemplateSyntaxError(
"%r tag require 1 argument: an application"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment