Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#7094 closed (fixed)

Ordering in the admin has no effect after [7477]

Reported by: Brian Rosner Owned by: nobody
Component: contrib.admin Version: newforms-admin
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


After doing a merge from trunk I have noticed that ordering in ChangeList is not taking affect. I have used pdb to determine that the correct data is being passed into order_by on the queryset, but not sure what is tripping it up. Creating a ticket so this issue is not lost and so that others are aware and may find a solution before me.

Change History (4)

comment:1 Changed 10 years ago by Brian Rosner

Triage Stage: UnreviewedAccepted

comment:2 Changed 10 years ago by Brian Rosner

I am beginning to wonder if this was some odd merge problem that svnmerge did automatically somehow. It does work as expected in trunk's admin. The only differences between ChangeList in trunk and in newforms-admin is the API calls it needs to get to options for the admin interface for the model. Hopefully this information is useful to someone else if they look into this.

comment:3 Changed 10 years ago by Brian Rosner

Resolution: fixed
Status: newclosed

(In [7481]) newforms-admin: Fixed #7094 -- Fixed admin ordering breakage after the queryset-refactor changes from trunk.

comment:4 Changed 10 years ago by Brian Rosner

ModelAdmin.queryset was passing no parameters to order_by which caused any future ordering to not happen.

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