We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current Django ViewSets do not include ordering or ordering_fields settings which can affect paginated endpoints.
ordering
ordering_fields
These should be set on
When complete, tests will no longer generate UnorderedObjectListWarning's e.g.
UnorderedObjectListWarning
workspaces/tests/test_views.py::TestMemberships::test_get_memberships workspaces/tests/test_views.py::TestMemberships::test_get_memberships_filter_by_is_active /Users/ian/Library/Caches/pypoetry/virtualenvs/the-guide-y4fToIIm-py3.11/lib/python3.11/site-packages/rest_framework/pagination.py:200: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'workspaces.models.Membership'> QuerySet. paginator = self.django_paginator_class(queryset, page_size)
The text was updated successfully, but these errors were encountered:
@ieaves can u assign me this issue
Sorry, something went wrong.
Absolutely! Thans for the help @Tejoooo !
Hey @Tejoooo just a quick checkin. Are you still working on this or should I unassign it?
Yes I'm
Tejoooo
No branches or pull requests
The current Django ViewSets do not include
ordering
orordering_fields
settings which can affect paginated endpoints.These should be set on
When complete, tests will no longer generate
UnorderedObjectListWarning
's e.g.The text was updated successfully, but these errors were encountered: