Code

Ticket #7417: admindoc.patch

File admindoc.patch, 910 bytes (added by robvdl, 6 years ago)

I've created a patch for this

Line 
1diff -crB django/django/template/defaulttags.py djangopatch/django/template/defaulttags.py
2*** django/template/defaulttags.py      2008-06-24 15:15:56.135225065 +1200
3--- django/template/defaulttags.py      2008-06-24 15:25:35.255225920 +1200
4***************
5*** 683,689 ****
6      """
7      The ``{% if %}`` tag evaluates a variable, and if that variable is "true"
8      (i.e. exists, is not empty, and is not a false boolean value) the contents
9!     of the block are output::
10 
11          {% if athlete_list %}
12              Number of athletes: {{ athlete_list|count }}
13--- 683,691 ----
14      """
15      The ``{% if %}`` tag evaluates a variable, and if that variable is "true"
16      (i.e. exists, is not empty, and is not a false boolean value) the contents
17!     of the block are output:
18!
19!     ::
20 
21          {% if athlete_list %}
22              Number of athletes: {{ athlete_list|count }}