#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.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/056.3a4d5516dbe3e9b11cb4718f3276009f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.