AlphacrucisCollege / django-template-utils

Fork of (abandoned?) package used in ac.edu.au. Exported via GoogleCodeExport.
https://bitbucket.org/ubernostrum/django-template-utils
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Allow passing filtered values to comparison template tags #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, something like

     {% if_greater myvar|length 40 %}...{% endif_greater %}

doesn't work because of the way the template tag parses its arguments. I'm
attaching a patch that fixes this (similar to
http://code.djangoproject.com/attachment/ticket/5756/5756.patch for {%
ifequal %}).

Original issue reported on code.google.com by sciyoshi on 19 Aug 2008 at 7:45

Attachments:

GoogleCodeExporter commented 8 years ago
As I've said in other tickets: this is an upstream Django issue relating to the 
way the template.Variable class 
works, and should be fixed there rather than being hacked around here.

Original comment by ubernost...@gmail.com on 25 Aug 2008 at 8:21