Opened 8 years ago

Closed 7 years ago

#6166 closed (fixed)

Templates autoescape / inheritance example broken

Reported by: purdeaandrei 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 PJCrosier 8 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by SmileyChris

  • Needs documentation set
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Agreed. Very useless.

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

comment:2 Changed 8 years ago by gwilson

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

comment:3 Changed 8 years ago by PJCrosier

  • Has patch set
  • Keywords templates autoescape added
  • Needs documentation unset
  • Summary changed from templates - autoescape - inheritance to Templates autoescape / inheritance example broken

Changed 8 years ago by PJCrosier

comment:4 Changed 8 years ago by PJCrosier

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

comment:5 Changed 7 years ago by ubernostrum

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [7299].

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