Thursday, March 01, 2007

Django ifequal is broken for negative numbers

If you are using django version 0.95 like I am, you may have noticed the following code does not work. Here is the code for my custom templatetag ifneg which I wrote to test just for negative numbers, since that is all I needed to do. If you don't have the 5 minutes it takes to write this function, feel free to copy mine

No comments:

arkayne