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:
committed by
Tim Graham
parent
93bd860710
commit
a9f5652113
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user