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:
		| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user