Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#23736 closed Bug (fixed)

Description of silent_variable_failure is incorrect

Reported by: Aymeric Augustin Owned by: Tim Graham
Component: Documentation Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

https://docs.djangoproject.com/en/1.7/ref/templates/api/#variables-and-lookups says that when an exception is swallowed because it has a silent_variable_failure attribute set to True, the variable that failed is rendered as the empty string.

Actually it's rendered as settings.TEMPLATE_STRING_IF_INVALID which seems to be the correct behavior.

Change History (4)

comment:1 Changed 8 years ago by Tim Graham

Owner: changed from nobody to Tim Graham
Status: newassigned
Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In e7cb4f2fbaff7996fb48e9c79aa0ec454abcf8f7:

Fixed #23736 -- Corrected the description of the value that silent_variable_failure uses.

Thanks Aymeric Augustin for the report.

comment:3 Changed 8 years ago by Tim Graham <timograham@…>

In f2de56223540c1e728c82baf206ffa6e6f285eab:

[1.7.x] Fixed #23736 -- Corrected the description of the value that silent_variable_failure uses.

Thanks Aymeric Augustin for the report.

Backport of e7cb4f2fba from master

comment:4 Changed 8 years ago by Tim Graham <timograham@…>

In 89df9d244d47d7c6cf29bd482a791dd4c684e237:

[1.6.x] Fixed #23736 -- Corrected the description of the value that silent_variable_failure uses.

Thanks Aymeric Augustin for the report.

Backport of e7cb4f2fba from master

Note: See TracTickets for help on using tickets.
Back to Top