mirror of
https://github.com/django/django.git
synced 2025-11-22 20:16:24 +00:00
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>
This commit is contained in:
parent
1aa69a7491
commit
01f8460653
26 changed files with 168 additions and 171 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue