Use Django's smarter if tag.
Review Request #2834 — Created Jan. 29, 2012 and submitted
Use Django's smarter if tag. Django these days provides a smarter if tag that allows for basic expressions. This is nicer than using ifequal for things, and with Django 1.4, we can also do elif. This cleans up bits of the code and allows some expressions and nested ifs to be condensed.
I checked a few pages, but haven't checked everything. I'd like a pair of eyes on every line of my change to be sure I didn't do something stupid. We'll also want to just test this a lot before beta.
Description | From | Last Updated |
---|---|---|
Not 100% sure, but I think this comment can now be removed. |
ME medanat | |
Why is this line commented out? |
ME medanat | |
One less indent here. |
ME medanat | |
One less indent here. |
ME medanat | |
One less indent for both of these lines. |
ME medanat | |
One less indent here. |
ME medanat | |
One less indent here. |
ME medanat | |
Insert one indent here. |
ME medanat | |
Insert one indent here. |
ME medanat | |
single space after added_by. i.e.: added_by %} |
ME medanat |