Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #14489 -- Corrected code example in class-based views docs. Tha…

…nks to cwhaines for the report. Also includes title capitalization fix, reported by apollo13.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a6cafffbf7e7aaf269241f1283f781a9d3eddfb2 1 parent 2db34d2
@freakboy3742 freakboy3742 authored
2  docs/ref/class-based-views.txt
@@ -1,5 +1,5 @@
-Class-Based Generic views
+Class-based generic views
.. versionadded:: 1.3
2  docs/topics/class-based-views.txt
@@ -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``
Please sign in to comment.
Something went wrong with that request. Please try again.