Hi,
personally I am -1 on that, for the following reasons:
- This can be done in an external library
- You can't support every possibility, you want a string/int filter, I
want a blableblub/younameit type conversion
- playing with request.GET.* in templates is probably something you
There's numerous time where I found myself wishing for type casting
filters in templates..
For example, the following won't work because one is a string and the
other is an integer:
{% if request.GET.year == object.date.year %}
...
{% endif %}
So when I need to compare a string with an int with