Opened 8 years ago

Closed 7 years ago

#10800 closed (fixed)

render_to_string and render_to_response use select_template

Reported by: p.patruno@… Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In documentaztion:
"The Django template language: For Python programmers"
http://docs.djangoproject.com/en/dev/ref/templates/api/

accordind with:
http://code.djangoproject.com/ticket/546

render_to_string and render_to_response can use select_template

so:
"The render_to_string shortcut takes one required argument -- template_name, which should be the name of the template to load and render -- and two optional arguments:"

should be:
"The render_to_string shortcut takes one required argument -- template_name, which should be a string with the name of the template to load and render or a list or tuple containing templates arguments for select_template -- and two optional arguments:"

Attachments (1)

10800.diff (774 bytes) - added by Tim Graham 7 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 8 years ago by Chris Beaven

Keywords: render_to_string removed
Needs documentation: set
Triage Stage: UnreviewedAccepted
Version: 1.0SVN

Changed 7 years ago by Tim Graham

Attachment: 10800.diff added

comment:2 Changed 7 years ago by Tim Graham

Has patch: set
Needs documentation: unset
Triage Stage: AcceptedReady for checkin

comment:3 Changed 7 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [12161]) Fixed #10800 -- Made a small improvement to render_to_string() docs. Thanks, p.patruno@… and timo

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