mirror of https://github.com/django/django.git
[3.1.x] Fixed #32536 -- Added links to BaseDetailView/BaseListView.get() methods in CBV docs.
Backport of bc04941bf8
from main
This commit is contained in:
parent
7c662b75f6
commit
0415ac5af9
|
@ -114,7 +114,7 @@ Detail Views
|
|||
|
||||
* :meth:`~django.views.generic.base.View.as_view`
|
||||
* :meth:`~django.views.generic.base.View.dispatch`
|
||||
* ``get()``
|
||||
* :meth:`~django.views.generic.detail.BaseDetailView.get`
|
||||
* :meth:`~django.views.generic.detail.SingleObjectMixin.get_context_data`
|
||||
* :meth:`~django.views.generic.detail.SingleObjectMixin.get_object`
|
||||
* ``head()``
|
||||
|
|
|
@ -34,7 +34,7 @@ many projects they are typically the most commonly used views.
|
|||
#. :meth:`~django.views.generic.detail.SingleObjectMixin.get_object()`
|
||||
#. :meth:`~django.views.generic.detail.SingleObjectMixin.get_context_object_name()`
|
||||
#. :meth:`~django.views.generic.detail.SingleObjectMixin.get_context_data()`
|
||||
#. ``get()``
|
||||
#. :meth:`~django.views.generic.detail.BaseDetailView.get`
|
||||
#. :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response()`
|
||||
|
||||
**Example myapp/views.py**::
|
||||
|
@ -123,7 +123,7 @@ many projects they are typically the most commonly used views.
|
|||
#. :meth:`~django.views.generic.list.MultipleObjectMixin.get_queryset()`
|
||||
#. :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_object_name()`
|
||||
#. :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_data()`
|
||||
#. ``get()``
|
||||
#. :meth:`~django.views.generic.list.BaseListView.get`
|
||||
#. :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response()`
|
||||
|
||||
**Example views.py**::
|
||||
|
|
Loading…
Reference in New Issue