diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-11-24 22:33:32 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-11-24 22:33:32 +0000 |
| commit | bd2b0059beeaf3cf4eddac38364e039bc91410fe (patch) | |
| tree | ea4aaae68eb4edcdb7c3735cf06a1b9c5418d2b5 /django | |
| parent | 714490ba5170a9181210a8bfce45147fb936d6c1 (diff) | |
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
Diffstat (limited to 'django')
| -rw-r--r-- | django/template/defaulttags.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 06ad5c635a..091130956d 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -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): |
