Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #20612 -- Fixed incorrect wording in CBV documentation

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

0 notes on commit b53ed5a

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