[Django] #24417: Django admin opton get_list_select_related is missing

27 views
Skip to first unread message

Django

unread,
Feb 26, 2015, 6:37:25 AM2/26/15
to django-...@googlegroups.com
#24417: Django admin opton get_list_select_related is missing
-------------------------------+--------------------
Reporter: eskhool | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Since other list options such as list_display has a corresponding dynamic
function such as get_list_display, select_related should have the same to
dynamically specify the related models to retrieve.

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.

Django

unread,
Feb 28, 2015, 4:46:31 AM2/28/15
to django-...@googlegroups.com
#24417: Django admin opton get_list_select_related is missing
-------------------------------+--------------------------------------
Reporter: eskhool | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by eskhool):

* 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>

Django

unread,
Mar 2, 2015, 6:04:13 PM3/2/15
to django-...@googlegroups.com
#24417: Add ModelAdmin.get_list_select_related()
-------------------------------+------------------------------------
Reporter: eskhool | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by timgraham):

* 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>

Django

unread,
Mar 16, 2015, 6:00:47 AM3/16/15
to django-...@googlegroups.com
#24417: Add ModelAdmin.get_list_select_related()
-------------------------------+-------------------------------------
Reporter: eskhool | Owner: gannetson
Type: New feature | Status: assigned

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+-------------------------------------
Changes (by gannetson):

* owner: nobody => gannetson
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/24417#comment:3>

Django

unread,
Mar 16, 2015, 7:30:09 AM3/16/15
to django-...@googlegroups.com
#24417: Add ModelAdmin.get_list_select_related()
-------------------------------------+-------------------------------------

Reporter: eskhool | Owner: gannetson
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by knbk):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/24417#comment:4>

Django

unread,
Mar 16, 2015, 12:13:49 PM3/16/15
to django-...@googlegroups.com
#24417: Add ModelAdmin.get_list_select_related()
-------------------------------------+-------------------------------------
Reporter: eskhool | Owner: gannetson
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by collinanderson):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/24417#comment:5>

Django

unread,
Mar 19, 2015, 8:56:32 AM3/19/15
to django-...@googlegroups.com
#24417: Add ModelAdmin.get_list_select_related()
-------------------------------------+-------------------------------------
Reporter: eskhool | Owner: gannetson
Type: New feature | Status: closed
Component: contrib.admin | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* 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>

Reply all
Reply to author
Forward
0 new messages