5 ms·
Yep, all wrong :) You want a custom filter: http://www.djangoproject.com/documentation/templates_python/ http://www.djangoproject.com/documentation/templates_py
by GrumpySimon 18y ago
Yep, all wrong :) You want a custom filter: http://www.djangoproject.com/documentation/templates_python/ http://www.djangoproject.com/documentation/templates_python/
- mrtron 18y agoOther types of complexity can be handled in custom template tags too. The easy way to look at them is you could write your own 'filter' or 'count' or any of the tags you see. However, most of your needs can be met by the built in filters.