From 1b8c4c455682e6fcc747ae2dfc0133862dd0d1a3 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 20 Jul 2005 17:12:12 +0000 Subject: [PATCH] Argh: fixed another bug in [244] git-svn-id: http://code.djangoproject.com/svn/django/trunk@246 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/comments/templatetags/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/comments/templatetags/comments.py b/django/contrib/comments/templatetags/comments.py index d3044b992f..d9fe0e3a39 100644 --- a/django/contrib/comments/templatetags/comments.py +++ b/django/contrib/comments/templatetags/comments.py @@ -322,7 +322,7 @@ class DoGetCommentList: 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