Fixed a bug in the eventurl template tag

This commit is contained in:
Raphael Michel
2015-10-18 17:28:01 +02:00
parent c1af2b1f2d
commit aa51aaf1c2

View File

@@ -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]