Opened 10 years ago

Closed 10 years ago

Last modified 10 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 by Tim Graham, 10 years ago

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

comment:2 by Tim Graham <timograham@…>, 10 years ago

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 by Tim Graham <timograham@…>, 10 years ago

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 by Tim Graham <timograham@…>, 10 years ago

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