[2.2.x] Refs #10348 -- Doc'd that ModelAdmin ignores list_select_related when QuerySet.select_related() was already called.

Backport of e3f647f4d5 from master
This commit is contained in:
Tamer Sherif 2019-09-29 10:40:16 +02:00 committed by Mariusz Felisiak
parent 146086f219
commit 98573cfe48
1 changed files with 6 additions and 0 deletions

View File

@ -1031,6 +1031,12 @@ subclass::
If you need to specify a dynamic value based on the request, you can
implement a :meth:`~ModelAdmin.get_list_select_related` method.
.. note::
``ModelAdmin`` ignores this attribute when
:meth:`~django.db.models.query.QuerySet.select_related` was already
called on the changelist's ``QuerySet``.
.. attribute:: ModelAdmin.ordering
Set ``ordering`` to specify how lists of objects should be ordered in the