From a6cafffbf7e7aaf269241f1283f781a9d3eddfb2 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 18 Oct 2010 16:35:37 +0000 Subject: [PATCH] Fixed #14489 -- Corrected code example in class-based views docs. Thanks 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 --- docs/ref/class-based-views.txt | 2 +- docs/topics/class-based-views.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/class-based-views.txt b/docs/ref/class-based-views.txt index 27c8ed6f232..ae55f384a1a 100644 --- a/docs/ref/class-based-views.txt +++ b/docs/ref/class-based-views.txt @@ -1,5 +1,5 @@ ========================= -Class-Based Generic views +Class-based generic views ========================= .. versionadded:: 1.3 diff --git a/docs/topics/class-based-views.txt b/docs/topics/class-based-views.txt index bdd57593554..65529216752 100644 --- a/docs/topics/class-based-views.txt +++ b/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``