summaryrefslogtreecommitdiff
path: root/docs/topics/class-based-views
diff options
context:
space:
mode:
authorClifford Gama <cliffygamy@gmail.com>2025-10-29 17:32:12 +0200
committerGitHub <noreply@github.com>2025-10-29 11:32:12 -0400
commit01f8460653e73a8f60c98d3a37a74b28818744b6 (patch)
treedbefe388d320ce6d33eee93a3c441142384b40f5 /docs/topics/class-based-views
parent1aa69a7491ce7f7f1f164a26a3dfaaa1aeeab217 (diff)
Fixed #36329 -- Removed non-code custom link text when cross-referencing Python objects.
Thanks Bruno Alla, Sarah Boyce, and Jacob Walls for reviews. Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Diffstat (limited to 'docs/topics/class-based-views')
-rw-r--r--docs/topics/class-based-views/mixins.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/topics/class-based-views/mixins.txt b/docs/topics/class-based-views/mixins.txt
index 619636d8b9..bf577972a9 100644
--- a/docs/topics/class-based-views/mixins.txt
+++ b/docs/topics/class-based-views/mixins.txt
@@ -156,12 +156,13 @@ it.
To make a :class:`~django.template.response.TemplateResponse`,
:class:`ListView` then uses
-:class:`~django.views.generic.list.MultipleObjectTemplateResponseMixin`; as
-with :class:`~django.views.generic.detail.SingleObjectTemplateResponseMixin`
-above, this overrides ``get_template_names()`` to provide :meth:`a range of
-options <django.views.generic.list.MultipleObjectTemplateResponseMixin>`, with
-the most commonly-used being ``<app_label>/<model_name>_list.html``, with the
-``_list`` part again being taken from the
+:class:`~django.views.generic.list.MultipleObjectTemplateResponseMixin`.
+As with :class:`~django.views.generic.detail.SingleObjectTemplateResponseMixin`
+above, this overrides
+:meth:`~django.views.generic.list.MultipleObjectTemplateResponseMixin.get_template_names`
+to provide a range of options, with the most commonly-used being
+``<app_label>/<model_name>_list.html``, with the ``_list`` part again
+being taken from the
:attr:`~django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix`
attribute. (The date based generic views use suffixes such as ``_archive``,
``_archive_year`` and so on to use different templates for the various