Open bplociennik opened 4 years ago
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.
o
Page listing with one field to order: /admin/properties/propertypage/?o=0
/admin/properties/propertypage/?o=0
Page listing with two fields to order: /admin/properties/propertypage/?o=2.0
/admin/properties/propertypage/?o=2.0
Excepted result (from the model admin listing): /admin/properties/propertypage/?o=0.2
/admin/properties/propertypage/?o=0.2
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Expected Result
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
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Expected Result
Technical details