diff options
| author | Tim Graham <timograham@gmail.com> | 2015-08-07 07:18:55 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-08-08 07:33:15 -0400 |
| commit | a3830f6d663aee9e91871002cbff7c57aee6d989 (patch) | |
| tree | 4976576d0a4cb9fad39c89f38cb4229765dfb5b2 /django/views/static.py | |
| parent | 64982cc2fb13ebc45982c64e25fdb7865e6d2499 (diff) | |
Refs #25236 -- Removed ifequal/ifnotequal usage.
Diffstat (limited to 'django/views/static.py')
| -rw-r--r-- | django/views/static.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/static.py b/django/views/static.py index 9959b96236..6187f6ffd9 100644 --- a/django/views/static.py +++ b/django/views/static.py @@ -87,9 +87,9 @@ DEFAULT_DIRECTORY_INDEX_TEMPLATE = """ <body> <h1>{% blocktrans %}Index of {{ directory }}{% endblocktrans %}</h1> <ul> - {% ifnotequal directory "/" %} + {% if directory != "/" %} <li><a href="../">../</a></li> - {% endifnotequal %} + {% endif %} {% for f in file_list %} <li><a href="{{ f|urlencode }}">{{ f }}</a></li> {% endfor %} |
