Opened 9 years ago

Closed 9 years ago

#6166 closed (fixed)

Templates autoescape / inheritance example broken

Reported by: Purdea Andrei Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: templates autoescape
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

On the following page: http://www.djangoproject.com/documentation/templates/#for-template-blocks

Where the issue of combining autoescape and inheritence is discussed the example is useless.

Attachments (1)

6166.docs.templates.diff (1015 bytes) - added by Pete Crosier 9 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 9 years ago by Chris Beaven

Needs documentation: set
Triage Stage: UnreviewedAccepted

Agreed. Very useless.

Needs to be changed to use context variables to show that they don't get escaped.

comment:2 Changed 9 years ago by Gary Wilson

And the block tags in base.html are missing endblocks.

comment:3 Changed 9 years ago by Pete Crosier

Has patch: set
Keywords: templates autoescape added
Needs documentation: unset
Summary: templates - autoescape - inheritanceTemplates autoescape / inheritance example broken

Changed 9 years ago by Pete Crosier

Attachment: 6166.docs.templates.diff added

comment:4 Changed 9 years ago by Pete Crosier

Patch to get the ball-rolling / so this doesn't stay broken and confuse people.

comment:5 Changed 9 years ago by James Bennett

Resolution: fixed
Status: newclosed

Fixed in [7299].

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