Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Use ordered object list in paginator #2

Open
vladan opened this issue Dec 12, 2017 · 0 comments
Open

Use ordered object list in paginator #2

vladan opened this issue Dec 12, 2017 · 0 comments

Comments

@vladan
Copy link
Member

vladan commented Dec 12, 2017

biblioteka/hacklab/biblioteka/views.py:32:
UnorderedObjectListWarning:
Pagination may yield inconsistent results with an unordered object_list:
<class 'hacklab.biblioteka.models.books.Book'> QuerySet.

paginator = Paginator(objects, 15)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants