Django

Code

Ticket #7417: admindoc.diff

File admindoc.diff, 0.6 kB (added by robvdl, 5 months ago)

Patch recreated in .diff format against SVN 7730

  • djangopatch/django/template/defaulttags.py

    old new  
    683683    """ 
    684684    The ``{% if %}`` tag evaluates a variable, and if that variable is "true" 
    685685    (i.e. exists, is not empty, and is not a false boolean value) the contents 
    686     of the block are output:: 
     686    of the block are output: 
    687687 
     688    :: 
     689 
    688690        {% if athlete_list %} 
    689691            Number of athletes: {{ athlete_list|count }} 
    690692        {% else %}