Code

Opened 5 years ago

Closed 4 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 timo 4 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 5 years ago by SmileyChris

  • Keywords render_to_string removed
  • Needs documentation set
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Version changed from 1.0 to SVN

Changed 4 years ago by timo

comment:2 Changed 4 years ago by timo

  • Has patch set
  • Needs documentation unset
  • Triage Stage changed from Accepted to Ready for checkin

comment:3 Changed 4 years ago by adrian

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

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.