mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
2db34d2307
commit
a6cafffbf7
|
@ -1,5 +1,5 @@
|
|||
=========================
|
||||
Class-Based Generic views
|
||||
Class-based generic views
|
||||
=========================
|
||||
|
||||
.. versionadded:: 1.3
|
||||
|
|
|
@ -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``
|
||||
|
|
Loading…
Reference in New Issue