Skip to content

Commit

Permalink
Fixed #14489 -- Corrected code example in class-based views docs. Tha…
Browse files Browse the repository at this point in the history
…nks to cwhaines for the report. Also includes title capitalization fix, reported by apollo13.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Oct 18, 2010
1 parent 2db34d2 commit a6cafff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/ref/class-based-views.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=========================
Class-Based Generic views
Class-based generic views
=========================

.. versionadded:: 1.3
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/class-based-views.txt
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ specify the list of objects using the ``queryset`` argument::
class PublisherDetailView(DetailView):

context_object_name = "publisher"
queryset = Publisher.object.all()
queryset = Publisher.objects.all()

Specifying ``model = Publisher`` is really just shorthand for saying
``queryset = Publisher.objects.all()``. However, by using ``queryset``
Expand Down

0 comments on commit a6cafff

Please sign in to comment.