summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTamer Sherif <tamer.sherif@flyingelephantlab.com>2019-09-29 10:40:16 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-10-07 10:38:08 +0200
commite3f647f4d5fc414f8cb7ab58df5e61a19908c63f (patch)
tree017dba3e58eaf1d2be36fbe4e24675845c402ef1 /docs/ref
parentf52022ad96356d4b1061610f2b74ea4d1956a608 (diff)
Refs #10348 -- Doc'd that ModelAdmin ignores list_select_related when QuerySet.select_related() was already called.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/admin/index.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 68221ede5e..75d8245499 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -1026,6 +1026,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