On Dec 30, 2007 8:43 AM, kool <[EMAIL PROTECTED]> wrote: > 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 >
Put the -1 in quotes: var|add:"-1", and it will do what you want. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---