#17229: Allow 'True', 'False' and 'None' to resolve to corresponding Python 
objects
-------------------------------------+-------------------------------------
     Reporter:  anatoly techtonik    |                    Owner:  nobody
  <techtonik@…>                      |                   Status:  reopened
         Type:  New feature          |                  Version:  1.2
    Component:  Template system      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Design
     Keywords:                       |  decision needed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by lukeplant):

 The other thing to add is that comparison to 'None' does work (by
 accident, really). If you write:

 {{{
 {% if closed == None %}
   None
 {% else %}{% if closed %}
   True
 {% else %}
   False
 {% endif %}{% endif %}
 }}}

 then you get the behaviour you want.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17229#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to