mirror of https://github.com/django/django.git
Fixed really dumb bug in [244]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
890bd5b0d2
commit
067f56d93d
|
@ -322,7 +322,7 @@ class DoGetCommentList:
|
||||||
tokens = token.contents.split()
|
tokens = token.contents.split()
|
||||||
# Now tokens is a list like this:
|
# Now tokens is a list like this:
|
||||||
# ['get_comment_list', 'for', 'lcom.eventtimes', 'event.id', 'as', 'comment_list']
|
# ['get_comment_list', 'for', 'lcom.eventtimes', 'event.id', 'as', 'comment_list']
|
||||||
if 6 <= len(tokens) <= 7
|
if 6 <= len(tokens) <= 7:
|
||||||
raise template.TemplateSyntaxError, "%s block tag requires 5 or 6 arguments" % self.tag_name
|
raise template.TemplateSyntaxError, "%s block tag requires 5 or 6 arguments" % self.tag_name
|
||||||
if tokens[1] != 'for':
|
if tokens[1] != 'for':
|
||||||
raise template.TemplateSyntaxError, "Second argument in '%s' tag must be 'for'" % self.tag_name
|
raise template.TemplateSyntaxError, "Second argument in '%s' tag must be 'for'" % self.tag_name
|
||||||
|
|
Loading…
Reference in New Issue