Fixed #17229 -- Allow 'True', 'False' and 'None' to resolve to the corresponding Python objects in templates.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Aymeric Augustin 2012-04-10 20:49:45 +00:00
parent 28e5b66518
commit 93240b7d90
5 changed files with 30 additions and 12 deletions

View file

@ -307,12 +307,6 @@ time zone is unset, the default time zone applies.
Server time: {{ value }}
{% endtimezone %}
.. note::
In the second block, ``None`` resolves to the Python object ``None``
because it isn't defined in the template context, not because it's the
string ``None``.
.. templatetag:: get_current_timezone
get_current_timezone