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``