Opened 4 years ago

Closed 4 years ago

#16344 closed Bug (fixed)

Wrong render example in docs

Reported by: Jure Cuhalev <gandalf@…> Owned by: teraom
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

In second example for render(): https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#example

it imports Context but then uses RequestContext.

Fix:
change:

c = RequestContext(request, {'foo': 'bar'})

to:

c = Context(request, {'foo': 'bar'})

since it's a simple render

Attachments (1)

render_docs_example-16344.diff (532 bytes) - added by teraom 4 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 years ago by PaulM

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

Changed 4 years ago by teraom

comment:2 Changed 4 years ago by teraom

  • Has patch set
  • Owner changed from nobody to teraom
  • Status changed from new to assigned

comment:3 Changed 4 years ago by PaulM

  • Triage Stage changed from Accepted to Ready for checkin

comment:4 Changed 4 years ago by jezdez

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

In [16465]:

Fixed #16344 -- Fixed typo in render() docs. Thanks, Jure Cuhalev.

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