Hi, i am writing this because i wanted to decrement a variable.
To increment, i used var|add:1
To decrement i tryed var|add:-1, but it gives this error:
TemplateSyntaxError at (...)
add requires 1 arguments, 0 provided

why not create a sub filter?
like var|sub:1

i thing that i am not the only one that needs to decrement a variable
in templates.

thx for the time

Bruno Almeida


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to