mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #4552 -- minor tidy up of the {% for %} tag's comma splitting
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -725,7 +725,7 @@ def do_for(parser, token): | ||||
|         raise TemplateSyntaxError("'for' statements should use the format" | ||||
|                                   " 'for x in y': %s" % token.contents) | ||||
|  | ||||
|     loopvars = re.sub(r' *, *', ',', ' '.join(bits[1:in_index])).split(',') | ||||
|     loopvars = re.split(r' *, *', ' '.join(bits[1:in_index])) | ||||
|     for var in loopvars: | ||||
|         if not var or ' ' in var: | ||||
|             raise TemplateSyntaxError("'for' tag received an invalid argument:" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user