#2210: [patch] order_by on related table with db_column different to name fails
----------------------------------------------+-----------------------------
Reporter: Russell Cloran <[EMAIL PROTECTED]> | Owner: adrian
Type: defect | Status: new
Priority: normal | Milestone:
Component: Database wrapper | Version: SVN
Severity: normal | Resolution:
Keywords: |
----------------------------------------------+-----------------------------
Changes (by [EMAIL PROTECTED]):
* summary: order_by on related table with db_column different to name
fails => [patch] order_by on related table with
db_column different to name fails
Comment:
I added a patch that allows you to do order by related fields.
{{{
Foo.objects.all().order_by('name')
Bar.objects.order_by('-foo__name')
Baz.objects.order_by('bar__foo__name')
}}}
The Admin interface needs to be updated to make use of this.
--
Ticket URL: <http://code.djangoproject.com/ticket/2210>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---