Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.5.x] Fixed #20612 -- Fixed incorrect wording in CBV documentation

Thanks to ndokos for the report.

Backport of b53ed5a from master.
  • Loading branch information...
commit ee8996d8a6f8fc462a6e912bcf0cf80530704ab4 1 parent 843802e
Baptiste Mispelon authored June 21, 2013
15  docs/topics/class-based-views/generic-display.txt
@@ -196,15 +196,12 @@ provided by the generic view. For example, think of showing a list of
196 196
 all the books on each publisher detail page. The
197 197
 :class:`~django.views.generic.detail.DetailView` generic view provides
198 198
 the publisher to the context, but how do we get additional information
199  
-in that template.
200  
-
201  
-However, there is; you can subclass
202  
-:class:`~django.views.generic.detail.DetailView` and provide your own
203  
-implementation of the ``get_context_data`` method. The default
204  
-implementation of this that comes with
205  
-:class:`~django.views.generic.detail.DetailView` simply adds in the
206  
-object being displayed to the template, but you can override it to send
207  
-more::
  199
+in that template?
  200
+
  201
+The answer is to subclass :class:`~django.views.generic.detail.DetailView`
  202
+and provide your own implementation of the ``get_context_data`` method.
  203
+The default implementation simply adds the object being displayed to the
  204
+template, but you can override it to send more::
208 205
 
209 206
     from django.views.generic import DetailView
210 207
     from books.models import Publisher, Book

0 notes on commit ee8996d

Please sign in to comment.
Something went wrong with that request. Please try again.