diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-09-28 11:20:48 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-09-28 11:20:48 +0000 |
| commit | db6688a454497758e17773db96cbde78a9f1e1eb (patch) | |
| tree | 0aadb2eec27c30a444970f0f7b7fc4fd5275746e | |
| parent | c0127f015bc8ba78ac616e97f803b19f6027bb12 (diff) | |
Added a note about not using ifequal and ifnotequal to compare against True,
False, None, etc.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3880 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | docs/templates.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/templates.txt b/docs/templates.txt index c9e76d6c94..35537d6e5f 100644 --- a/docs/templates.txt +++ b/docs/templates.txt @@ -540,6 +540,11 @@ The arguments can be hard-coded strings, so the following is valid:: ... {% endifequal %} +It is only possible to compare an argument to template variables or strings. +You cannot check for equality with Python objects such as ``True`` or +``False``. If you need to test if something is true or false, use the ``if`` +and ``ifnot`` tags instead. + ifnotequal ~~~~~~~~~~ |
