1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #28529 -- Fixed VariableDoesNotExist warnings in admin templates.

This commit is contained in:
Vlastimil Zíma
2017-08-25 11:47:59 +02:00
committed by Tim Graham
parent 93bd860710
commit a9f5652113
10 changed files with 21 additions and 12 deletions

View File

@@ -371,9 +371,9 @@ replaced with the name of the invalid variable.
While ``string_if_invalid`` can be a useful debugging tool, it is a bad
idea to turn it on as a 'development default'.
Many templates, including those in the Admin site, rely upon the silence
of the template system when a nonexistent variable is encountered. If you
assign a value other than ``''`` to ``string_if_invalid``, you will
Many templates, including some of the Django's templates, rely upon the
silence of the template system when a nonexistent variable is encountered.
If you assign a value other than ``''`` to ``string_if_invalid``, you will
experience rendering problems with these templates and sites.
Generally, ``string_if_invalid`` should only be enabled in order to debug