Changes between Initial Version and Version 2 of Ticket #24411
- Timestamp:
- Feb 24, 2015, 11:34:48 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24411 – Description
initial v2 13 13 Because Django templates resolves {{{model_count.items}}} to {{{model_count['items']}}} (which, in the above example is {{{1}}}), this results in the template system trying to iterate an integer. 14 14 15 Now, using changing thatline in the template to:15 Now, changing the offending line in the template to: 16 16 17 17 {{{ … … 19 19 }}} 20 20 21 fixes the issue, but due to [http://legacy.python.org/dev/peps/pep-0469/ PEP 469], this might not be the solution, and (I say jokingly, but for completion sake),what happens when I name my model {{{IterItem}}}?21 incidentally addresses the issue, but due to [http://legacy.python.org/dev/peps/pep-0469/ PEP 469], this might not be the solution. And, (I say jokingly, but for completion sake) what happens when I name my model {{{IterItem}}}?