1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Here's the rest of [9530] where I actually rename the tag like I said I did. I swear this was git's fault, not mine.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss
2008-11-24 22:33:32 +00:00
parent 714490ba51
commit bd2b0059be
2 changed files with 8 additions and 8 deletions

View File

@@ -679,14 +679,14 @@ def do_for(parser, token):
" %s" % token.contents)
sequence = parser.compile_filter(bits[in_index+1])
nodelist_loop = parser.parse(('default', 'endfor',))
nodelist_loop = parser.parse(('empty', 'endfor',))
token = parser.next_token()
if token.contents == 'default':
nodelist_default = parser.parse(('endfor',))
if token.contents == 'empty':
nodelist_empty = parser.parse(('endfor',))
parser.delete_first_token()
else:
nodelist_default = None
return ForNode(loopvars, sequence, is_reversed, nodelist_loop, nodelist_default)
nodelist_empty = None
return ForNode(loopvars, sequence, is_reversed, nodelist_loop, nodelist_empty)
do_for = register.tag("for", do_for)
def do_ifequal(parser, token, negate):