Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_orders applies arbitrary orderings. #61

Open
helenst opened this issue Jul 18, 2024 · 0 comments
Open

set_orders applies arbitrary orderings. #61

helenst opened this issue Jul 18, 2024 · 0 comments

Comments

@helenst
Copy link

helenst commented Jul 18, 2024

I believe Orderable.set_orders does not work as it should. We are experiencing random orderings of items each time it is applied.

I think this is because the orders list that gets zipped up with the list of object pks comes from a set of objects pulled out of the database by filter - so it's arbitarily ordered. (Possibly database-specific, this is postgres). I think a solution could be to sort the orders list before zipping it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant