From bc04941bf811d1ea2c79fb7fc20457ed2c7e3410 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Mon, 15 Mar 2021 14:27:18 +0100 Subject: [PATCH] Fixed #32536 -- Added links to BaseDetailView/BaseListView.get() methods in CBV docs. --- docs/ref/class-based-views/flattened-index.txt | 2 +- docs/ref/class-based-views/generic-display.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ref/class-based-views/flattened-index.txt b/docs/ref/class-based-views/flattened-index.txt index 62972ef24e..92020eb384 100644 --- a/docs/ref/class-based-views/flattened-index.txt +++ b/docs/ref/class-based-views/flattened-index.txt @@ -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()`` diff --git a/docs/ref/class-based-views/generic-display.txt b/docs/ref/class-based-views/generic-display.txt index 9126c6c50a..4bcca91bac 100644 --- a/docs/ref/class-based-views/generic-display.txt +++ b/docs/ref/class-based-views/generic-display.txt @@ -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**::