[Django] #25531: Document the fact that admin_order_field allows query lookups

38 views
Skip to first unread message

Django

unread,
Oct 8, 2015, 1:54:06 PM10/8/15
to django-...@googlegroups.com
#25531: Document the fact that admin_order_field allows query lookups
-------------------------+-------------------------------------------------
Reporter: | Owner: rfleschenberg
rfleschenberg |
Type: | Status: new
Uncategorized |
Component: | Version: 1.8
Documentation | Keywords: admin_order_field sort related
Severity: Normal | list_display
Triage Stage: | Has patch: 0
Unreviewed |
Easy pickings: 0 | UI/UX: 0
-------------------------+-------------------------------------------------
You can use query lookups in `admin_order_field`, but this is not
documented.

This allows to use `list_display` to sort by values of related fields.

See, for example http://mihasya.com/blog/django-admin-sorting-on-related-
objects-property/

--
Ticket URL: <https://code.djangoproject.com/ticket/25531>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 8, 2015, 2:57:44 PM10/8/15
to django-...@googlegroups.com
#25531: Document the fact that admin_order_field allows query lookups
-------------------------------------+-------------------------------------
Reporter: rfleschenberg | Owner:
Type: | rfleschenberg
Cleanup/optimization | Status: new
Component: Documentation | Version: 1.8
Severity: Normal | Resolution:
Keywords: admin_order_field | Triage Stage: Accepted
sort related list_display |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* needs_tests: => 0
* easy: 0 => 1
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/25531#comment:1>

Django

unread,
Oct 13, 2015, 9:19:44 AM10/13/15
to django-...@googlegroups.com
#25531: Document the fact that admin_order_field allows query lookups
-------------------------------------+-------------------------------------
Reporter: rfleschenberg | Owner:
Type: | Gayathrimenakath
Cleanup/optimization | Status: assigned

Component: Documentation | Version: 1.8
Severity: Normal | Resolution:
Keywords: admin_order_field | Triage Stage: Accepted
sort related list_display |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Gayathrimenakath):

* owner: rfleschenberg => Gayathrimenakath
* cc: gayathrimenakath@… (added)
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/25531#comment:2>

Django

unread,
Nov 7, 2015, 4:04:49 PM11/7/15
to django-...@googlegroups.com
#25531: Document the fact that admin_order_field allows query lookups
-------------------------------------+-------------------------------------
Reporter: rfleschenberg | Owner:
Type: | Gayathrimenakath
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.8
Severity: Normal | Resolution:
Keywords: admin_order_field | Triage Stage: Accepted
sort related list_display |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by rfleschenberg):

I had some spare time today and took the liberty to submit a pull request
for this (5608). I hope you don't mind, Gayathrimenakath :)

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

Django

unread,
Nov 7, 2015, 4:15:41 PM11/7/15
to django-...@googlegroups.com
#25531: Document the fact that admin_order_field allows query lookups
-------------------------------------+-------------------------------------
Reporter: rfleschenberg | Owner:
Type: | Gayathrimenakath
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.8
Severity: Normal | Resolution:
Keywords: admin_order_field | Triage Stage: Accepted
sort related list_display |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* has_patch: 0 => 1


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

Django

unread,
Nov 12, 2015, 8:21:20 PM11/12/15
to django-...@googlegroups.com
#25531: Document the fact that admin_order_field allows query lookups
-------------------------------------+-------------------------------------
Reporter: rfleschenberg | Owner:
Type: | Gayathrimenakath
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.8
Severity: Normal | Resolution:
Keywords: admin_order_field | Triage Stage: Accepted
sort related list_display |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

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

* needs_better_patch: 0 => 1


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

Django

unread,
Nov 13, 2015, 2:31:23 PM11/13/15
to django-...@googlegroups.com
#25531: Document the fact that admin_order_field allows query lookups
-------------------------------------+-------------------------------------
Reporter: rfleschenberg | Owner:
Type: | Gayathrimenakath
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.8
Severity: Normal | Resolution:
Keywords: admin_order_field | Triage Stage: Accepted
sort related list_display |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/25531#comment:6>

Django

unread,
Nov 14, 2015, 5:39:23 PM11/14/15
to django-...@googlegroups.com
#25531: Document the fact that admin_order_field allows query lookups
-------------------------------------+-------------------------------------
Reporter: rfleschenberg | Owner:
Type: | Gayathrimenakath
Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.8
Severity: Normal | Resolution: fixed

Keywords: admin_order_field | Triage Stage: Accepted
sort related list_display |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"2c727101113770d41e0907b333568bc2c25435e0" 2c727101]:
{{{
#!CommitTicketReference repository=""
revision="2c727101113770d41e0907b333568bc2c25435e0"
Fixed #25531 -- Documented that admin_order_field supports lookups.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25531#comment:7>

Django

unread,
Nov 14, 2015, 5:40:25 PM11/14/15
to django-...@googlegroups.com
#25531: Document the fact that admin_order_field allows query lookups
-------------------------------------+-------------------------------------
Reporter: rfleschenberg | Owner:
Type: | Gayathrimenakath
Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: admin_order_field | Triage Stage: Accepted
sort related list_display |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"058f604ac1c5d12c6b3efa903c8f2dcd28fef9e0" 058f604]:
{{{
#!CommitTicketReference repository=""
revision="058f604ac1c5d12c6b3efa903c8f2dcd28fef9e0"
[1.8.x] Fixed #25531 -- Documented that admin_order_field supports
lookups.

Backport of 2c727101113770d41e0907b333568bc2c25435e0 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25531#comment:9>

Django

unread,
Nov 14, 2015, 5:40:25 PM11/14/15
to django-...@googlegroups.com
#25531: Document the fact that admin_order_field allows query lookups
-------------------------------------+-------------------------------------
Reporter: rfleschenberg | Owner:
Type: | Gayathrimenakath
Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: admin_order_field | Triage Stage: Accepted
sort related list_display |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"85b56b8f66664e60cfb3c3879f5772dedb3e8b1f" 85b56b8]:
{{{
#!CommitTicketReference repository=""
revision="85b56b8f66664e60cfb3c3879f5772dedb3e8b1f"
[1.9.x] Fixed #25531 -- Documented that admin_order_field supports
lookups.

Backport of 2c727101113770d41e0907b333568bc2c25435e0 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25531#comment:8>

Reply all
Reply to author
Forward
0 new messages