#7098: FieldError Invalid order_by arguments in Admin pages when sorting on a
ForeignKey
-------------------------------+--------------------------------------
Reporter: trbs | Owner: nobody
Type: | Status: closed
Component: contrib.admin | Version: master
Severity: | Resolution: fixed
Keywords: order_by | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):
* ui_ux: => 0
* easy: => 0
Comment:
In [changeset:"98ea4f0f4696221f00e111f1d623452002192e6c" 98ea4f0f]:
{{{
#!CommitTicketReference repository=""
revision="98ea4f0f4696221f00e111f1d623452002192e6c"
Refs #7098 -- Deprecated passing raw column aliases to order_by().
Now that order_by() has expression support passing RawSQL() can achieve
the same result.
This was also already supported through QuerySet.extra(order_by) for
years but this API is more or less deprecated at this point.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/7098#comment:4>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.0381e0bb02371c3f2ad99766106eb6dd%40djangoproject.com.