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

Respect default model ordering #95

Closed
stevelacey opened this issue May 4, 2022 · 0 comments · Fixed by #157
Closed

Respect default model ordering #95

stevelacey opened this issue May 4, 2022 · 0 comments · Fixed by #157

Comments

@stevelacey
Copy link
Contributor

The default ordering specified on a model does not appear to be respected by views, probably something to do with how we set custom ordering, perhaps worf is nulling it out.

Specifically this can be seen on dataset APIs in guild where we've customized the queryset to repeat the default sort for CountryList, RoleList, etc.

Expected behavior: Worf uses the model's default ordering unless ordering has otherwise been customized via the queryset or ordering view attrs.

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

Successfully merging a pull request may close this issue.

1 participant