mirror of
https://github.com/pretix/pretix.git
synced 2026-08-18 12:06:26 +00:00
Fixed a bug in the eventurl template tag
This commit is contained in:
@@ -53,7 +53,7 @@ def eventurl(parser, token):
|
||||
kwargs = {}
|
||||
asvar = None
|
||||
bits = bits[3:]
|
||||
if len(bits) >= 3 and bits[-2] == 'as':
|
||||
if len(bits) >= 2 and bits[-2] == 'as':
|
||||
asvar = bits[-1]
|
||||
bits = bits[:-2]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user