Opened 18 years ago
Closed 18 years ago
#4959 closed (invalid)
Template for loop docs suggest missing tuple unpacking feature
Description ¶
The docs suggest you can unpack tuples in templates, however, this does not work.
Docs suggesting the missing feature: http://www.djangoproject.com/documentation/templates/#for
When attempted, this is the exception thrown:
bits = token.contents.split() if len(bits) == 5 and bits[4] != 'reversed': raise TemplateSyntaxError, "'for' statements with five words should end in 'reversed': %s" % token.contents
Change History (3)
comment:1 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 18 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:3 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Version: | SVN |
Note:
See TracTickets
for help on using tickets.
If you're using Django 0.96, then use the 0.96 docs: http://www.djangoproject.com/documentation/0.96/templates/