mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
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:
parent
28e5b66518
commit
93240b7d90
5 changed files with 30 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue