Django

Code

Changeset 246

Show
Ignore:
Timestamp:
07/20/05 12:12:12 (3 years ago)
Author:
jacob
Message:

Argh: fixed another bug in [244]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/comments/templatetags/comments.py

    r245 r246  
    323323        # Now tokens is a list like this: 
    324324        # ['get_comment_list', 'for', 'lcom.eventtimes', 'event.id', 'as', 'comment_list'] 
    325         if 6 <= len(tokens) <= 7: 
     325        if not 6 <= len(tokens) <= 7: 
    326326            raise template.TemplateSyntaxError, "%s block tag requires 5 or 6 arguments" % self.tag_name 
    327327        if tokens[1] != 'for':