mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 23:43:47 +00:00
templatetags python2 complient
This commit is contained in:
parent
6b484da4d3
commit
e797eb89b2
1 changed files with 3 additions and 1 deletions
|
@ -227,7 +227,9 @@ def acl_history_filter(parser, token):
|
|||
def acl_app_filter(parser, token):
|
||||
"""Templatetag for acl checking on applications."""
|
||||
try:
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue