diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2014-11-10 14:43:40 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2014-11-10 14:47:45 +0000 |
| commit | b748a8bc670af10c37560836c353ce911eaeecc0 (patch) | |
| tree | 099388cd7a6168b67e6dcde81e2e1f1dd42a9c89 /docs/ref | |
| parent | 006451f8943af2974a9a2c105dbc8470a33624c1 (diff) | |
Fixed #23789 -- TemplateResponse handles context differently from render
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/template-response.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/ref/template-response.txt b/docs/ref/template-response.txt index 7f0ddcf58d..bfee0e29af 100644 --- a/docs/ref/template-response.txt +++ b/docs/ref/template-response.txt @@ -287,9 +287,10 @@ invoked immediately. Using TemplateResponse and SimpleTemplateResponse ================================================= -A TemplateResponse object can be used anywhere that a normal -HttpResponse can be used. It can also be used as an alternative to -calling :func:`~django.shortcuts.render_to_response()`. +A TemplateResponse object can be used anywhere that a normal HttpResponse can be +used. It can also be used as an alternative to calling +:func:`~django.shortcuts.render()` or +:func:`~django.shortcuts.render_to_response()`. For example, the following simple view returns a :class:`TemplateResponse()` with a simple template, and a context |
