Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#7094 closed (fixed)

Ordering in the admin has no effect after [7477]

Reported by: brosner 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:

Description

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 7 years ago by brosner

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 7 years ago by brosner

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 7 years ago by brosner

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:4 Changed 7 years ago by brosner

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