diff options
| author | Timo Graham <timograham@gmail.com> | 2011-05-22 00:08:40 +0000 |
|---|---|---|
| committer | Timo Graham <timograham@gmail.com> | 2011-05-22 00:08:40 +0000 |
| commit | 08f5ac3d51c2e4b9ddf28a1bae640c1970decd8c (patch) | |
| tree | 1e8f55c2307d3e1a35ce21b06c354964a12b8e37 /docs/ref | |
| parent | b5c6b4f1d4603eee15bd426a5c5b0594c4d2e4f7 (diff) | |
[1.3.X] Fixed #16021 - Minor documentation fixes for Generic Class Views; thanks Bradley Ayers.
Backport of r16256 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/class-based-views.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/ref/class-based-views.txt b/docs/ref/class-based-views.txt index 21bb58c9b6..79ff235f2a 100644 --- a/docs/ref/class-based-views.txt +++ b/docs/ref/class-based-views.txt @@ -81,20 +81,20 @@ TemplateResponseMixin The response class to be returned by ``render_to_response`` method. Default is :class:`TemplateResponse <django.template.response.TemplateResponse>`. - The template and context of TemplateResponse instances can be + The template and context of ``TemplateResponse`` instances can be altered later (e.g. in :ref:`template response middleware <template-response-middleware>`). - Create TemplateResponse subclass and pass set it to - ``template_response_class`` if you need custom template loading or - custom context object instantiation. + If you need custom template loading or custom context object + instantiation, create a ``TemplateResponse`` subclass and assign it to + ``response_class``. .. method:: render_to_response(context, **response_kwargs) - Returns a ``self.template_response_class`` instance. + Returns a ``self.response_class`` instance. If any keyword arguments are provided, they will be - passed to the constructor of the response instance. + passed to the constructor of the response class. Calls :meth:`~TemplateResponseMixin.get_template_names()` to obtain the list of template names that will be searched looking for an existent |
