diff options
| author | Tamer Sherif <tamer.sherif@flyingelephantlab.com> | 2019-09-29 10:40:16 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-10-07 11:11:15 +0200 |
| commit | 98573cfe48b6c52dd0655f649e4180df3c6cc635 (patch) | |
| tree | b0ae743b5496fd59ef374f105d1928a6a48678fb /docs/ref | |
| parent | 146086f219d01dbb1cd8c089b5a5667e396e1cc4 (diff) | |
[2.2.x] Refs #10348 -- Doc'd that ModelAdmin ignores list_select_related when QuerySet.select_related() was already called.
Backport of e3f647f4d5fc414f8cb7ab58df5e61a19908c63f from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index b0daeaadaf..3ce62158d7 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -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 |
