Opened 16 years ago

Closed 15 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: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 15 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Chris Beaven, 15 years ago

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

by Tim Graham, 15 years ago

Attachment: 10800.diff added

comment:2 by Tim Graham, 15 years ago

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

comment:3 by Adrian Holovaty, 15 years ago

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