-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
type:BugSomething isn't workingSomething isn't working
Description
Issue Summary
There is a small issue with the ordering list for the models based on the Page model.
When you want to order on more than one field then the recently clicked column is present in order query param as the first not as the second.
Another behavior is on the basic models (ModelAdmin). When we choose second column to filter the order of that ids in the o query param is correct.
Page listing with one field to order:
/admin/properties/propertypage/?o=0
Page listing with two fields to order:
/admin/properties/propertypage/?o=2.0
Excepted result (from the model admin listing):
/admin/properties/propertypage/?o=0.2
Steps to Reproduce
- go to the listing for any model inherits from Page model
- click to sort by the first column
- after reloading choose another column to sort as the second sorting
- sorting works by second column firstly then for the first column
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
- I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: I didn't have time to check on the fresh project
Expected Result
- Ordering for models based on the Page model should work identically as it is in the model admin
Technical details
- Python version: 3.8.2
- Django version: 3.0.6
- Wagtail version: 2.9
- Browser version: Chrome 81
Metadata
Metadata
Assignees
Labels
type:BugSomething isn't workingSomething isn't working