summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-11-24 22:33:32 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-11-24 22:33:32 +0000
commitbd2b0059beeaf3cf4eddac38364e039bc91410fe (patch)
treeea4aaae68eb4edcdb7c3735cf06a1b9c5418d2b5 /django
parent714490ba5170a9181210a8bfce45147fb936d6c1 (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.py10
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):