[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:
Hasan Ramezani 2021-03-15 14:27:18 +01:00 committed by Mariusz Felisiak
parent 7c662b75f6
commit 0415ac5af9
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ Detail Views
* :meth:`~django.views.generic.base.View.as_view` * :meth:`~django.views.generic.base.View.as_view`
* :meth:`~django.views.generic.base.View.dispatch` * :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_context_data`
* :meth:`~django.views.generic.detail.SingleObjectMixin.get_object` * :meth:`~django.views.generic.detail.SingleObjectMixin.get_object`
* ``head()`` * ``head()``

View File

@ -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_object()`
#. :meth:`~django.views.generic.detail.SingleObjectMixin.get_context_object_name()` #. :meth:`~django.views.generic.detail.SingleObjectMixin.get_context_object_name()`
#. :meth:`~django.views.generic.detail.SingleObjectMixin.get_context_data()` #. :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()` #. :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response()`
**Example myapp/views.py**:: **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_queryset()`
#. :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_object_name()` #. :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_object_name()`
#. :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_data()` #. :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()` #. :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response()`
**Example views.py**:: **Example views.py**::