Changes between Initial Version and Version 1 of Ticket #22767, comment 1


Ignore:
Timestamp:
Jun 5, 2014, 7:49:31 AM (10 years ago)
Author:
Greg Chapple

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22767, comment 1

    initial v1  
    1212{% end %}
    1313}}}
     14
     15Edit:
     16
     17Also, in your example above, I don't think `{% if None|length > 0 %}` is doing what you think. In this case, django will treat `None` as just another template variable. So in fact it is treated the same as `groups` in your first example. You can confirm this like so:
     18
     19{{{
     20from django.shortcuts import render_to_response
     21def test_view(request):
     22    return render_to_response("test.html", {'None': 'test'})
     23
     24##### test.html
     25
     26{{ None }}
     27}}}
     28
     29If you run this in a browser you will see `'test'` returned in the response.
Back to Top