mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[3.0.x] Refs #10348 -- Doc'd that ModelAdmin ignores list_select_related when QuerySet.select_related() was already called.
Backport of e3f647f4d5fc414f8cb7ab58df5e61a19908c63f from master
This commit is contained in:
parent
4917b53e50
commit
3ea957b543
@ -1026,6 +1026,12 @@ subclass::
|
|||||||
If you need to specify a dynamic value based on the request, you can
|
If you need to specify a dynamic value based on the request, you can
|
||||||
implement a :meth:`~ModelAdmin.get_list_select_related` method.
|
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
|
.. attribute:: ModelAdmin.ordering
|
||||||
|
|
||||||
Set ``ordering`` to specify how lists of objects should be ordered in the
|
Set ``ordering`` to specify how lists of objects should be ordered in the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user