Use case: If you dynamically include foreign key columns in list_display,
then you would like the ability to dynamically specify the select_related
also. Otherwise the queries are not as efficient as select_related allows
them to be.
--
Ticket URL: <https://code.djangoproject.com/ticket/24417>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* type: Uncategorized => Bug
* needs_tests: => 0
* needs_docs: => 0
Comment:
Marking as a bug since it feels that the API is inconsistent with the rest
and its an easy win.
--
Ticket URL: <https://code.djangoproject.com/ticket/24417#comment:1>
* component: Uncategorized => contrib.admin
* type: Bug => New feature
* version: 1.7 => master
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/24417#comment:2>
* owner: nobody => gannetson
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24417#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/24417#comment:4>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24417#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"35b3158d52a5fe51d3b52aec1109a30a73c5abe9" 35b3158]:
{{{
#!CommitTicketReference repository=""
revision="35b3158d52a5fe51d3b52aec1109a30a73c5abe9"
Fixed #24417 -- Added ModelAdmin.get_list_select_related()
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24417#comment:6>