Changes between Initial Version and Version 2 of Ticket #24411


Ignore:
Timestamp:
Feb 24, 2015, 11:34:48 PM (10 years ago)
Author:
Michael Angeletti
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24411 – Description

    initial v2  
    1313Because 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.
    1414
    15 Now, using changing that line in the template to:
     15Now, changing the offending line in the template to:
    1616
    1717{{{
     
    1919}}}
    2020
    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}}}?
     21incidentally 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}}}?
Back to Top