Changes between Version 1 and Version 2 of Ticket #17664, comment 20


Ignore:
Timestamp:
Feb 19, 2018, 4:14:40 PM (7 years ago)
Author:
Robert Roskam

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17664, comment 20

    v1 v2  
    1616
    1717My reading so far feels incomplete in this area, but the way the parser seems to work is that if there is only 1 token to evaluate. It skips all the logic to eat the error. However, if it has multiple tokens, it hits all the appropriate logic.
     18
     19This happens because there's no operator for it to match (https://github.com/django/django/blob/master/django/template/smartif.py#L174)
Back to Top