summaryrefslogtreecommitdiff
path: root/tests/regressiontests/templates/smartif.py
AgeCommit message (Collapse)Author
2010-03-08Fixed #13058 - "smart if" template tag doesn't support "if not in ..." ↵Luke Plant
condition Thanks to ramusus for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12732 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-09Implemented 'smart if' template tag, allowing filters and various operators ↵Luke Plant
to be used in the 'if' tag Thanks to Chris Beaven for the initial patch, Fredrik Lundh for the basis of the parser methodology and Russell Keith-Magee for code reviews. There are some BACKWARDS INCOMPATIBILITIES in rare cases - in particular, if you were using the keywords 'and', 'or' or 'not' as variable names within the 'if' expression, which was previously allowed in some cases. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11806 bcc190cf-cafb-0310-a4f2-bffc1f526a37