Skip to content

Commit

Permalink
Fixed #14867 -- Corrected references to baking in the new TemplateRes…
Browse files Browse the repository at this point in the history
…ponse docs. Thanks to marcusf for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Dec 9, 2010
1 parent c58d25c commit b37d867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ref/template-response.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@ change is always applied. If you want to force the content to be
re-rendered, you can re-evaluate the rendered content, and assign
the content of the response manually::

# Set up a baked TemplateResponse
# Set up a rendered TemplateResponse
>>> t = TemplateResponse(request, 'original.html', {})
>>> t.render()
>>> print t.content
Original content

# Rebaking doesn't change content
# Re-rendering doesn't change content
>>> t.template_name = 'new.html'
>>> t.render()
>>> print t.content
Expand Down

0 comments on commit b37d867

Please sign in to comment.