From 940d17409e53658c510c1ae4962312b02e5ccaa4 Mon Sep 17 00:00:00 2001 From: Timo Graham Date: Sun, 22 May 2011 00:08:13 +0000 Subject: Fixed #16021 - Minor documentation fixes for Generic Class Views; thanks Bradley Ayers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16256 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/class-based-views.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/class-based-views.txt b/docs/ref/class-based-views.txt index 22a204d57a..c83559fdeb 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 `. - 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 `). - 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 -- cgit v1.3