mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #19882 -- Smarter tokenizing of {% for %} tag arguments.
This commit is contained in:
		| @@ -746,7 +746,7 @@ def do_for(parser, token): | ||||
|         ==========================  ================================================ | ||||
|  | ||||
|     """ | ||||
|     bits = token.contents.split() | ||||
|     bits = token.split_contents() | ||||
|     if len(bits) < 4: | ||||
|         raise TemplateSyntaxError("'for' statements should have at least four" | ||||
|                                   " words: %s" % token.contents) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user