Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Argh: fixed another bug in [244]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1b8c4c455682e6fcc747ae2dfc0133862dd0d1a3 1 parent 067f56d
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/comments/templatetags/comments.py
View
2  django/contrib/comments/templatetags/comments.py
@@ -322,7 +322,7 @@ def __call__(self, parser, token):
tokens = token.contents.split()
# Now tokens is a list like this:
# ['get_comment_list', 'for', 'lcom.eventtimes', 'event.id', 'as', 'comment_list']
- if 6 <= len(tokens) <= 7:
+ if not 6 <= len(tokens) <= 7:
raise template.TemplateSyntaxError, "%s block tag requires 5 or 6 arguments" % self.tag_name
if tokens[1] != 'for':
raise template.TemplateSyntaxError, "Second argument in '%s' tag must be 'for'" % self.tag_name
Please sign in to comment.
Something went wrong with that request. Please try again.