Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#389 closed enhancement (invalid)

[patch] admin interface only sorts by first ordering field

Reported by: volsung@… Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords: ordering
Cc: dcf@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have added an ordering attribute to a model with two field names:

ordering = ["crate", "card"]

I find that get_list() on the model sorts by "crate", then "card", as I expect. However, when I look at the list of objects in the admin interface, it only sorts by "crate" and not both "crate" and "card".

Attachments (1)

389.diffs (4.5 KB ) - added by dcf 19 years ago.
Diffs for magic-removal branch

Download all attachments as: .zip

Change History (7)

comment:1 by brovienas@…, 19 years ago

I have encountered the same thing. I am using MySQL

by dcf, 19 years ago

Attachment: 389.diffs added

Diffs for magic-removal branch

comment:2 by dcf, 19 years ago

Summary: admin interface only sorts by first ordering field[patch] admin interface only sorts by first ordering field

Added patch for this issue.

comment:3 by anonymous, 19 years ago

Cc: dcf@… added

comment:4 by Jacob, 19 years ago

milestone: Version 1.1
priority: normallow
Type: defectenhancement

The added patch breaks the changelist view (in django.db.models.handle_legacy_ordering).

comment:5 by Jacob, 19 years ago

Resolution: invalid
Status: newclosed

The patch still breaks the changelist view, and since it hasn't been updated I'm marking this INVALID.

comment:6 by (none), 18 years ago

Milestone Version 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top