Setting pagination_class on a ViewSet doesn't work and i don't understand why #8878
Unanswered
l0ggik
asked this question in
Question & Answer
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i am really confused because i try to set a pagination class on a single ViewSet.
If i set the Pagination class globally in the settings everything works perfectly fine but as soon as i try to set the Pagination class i get an AttributeError: 'LimitOffsetPagination' object has no attribute 'count'
These are the lines i change to produce the error:
In views:
In settings:
As far as i understand the documentation i can set the Pagination class, and if i set the Pagination class global and then set
pagination_class=None
it also works. What am i missing? I hope someone can explain to me where my mistake is.Beta Was this translation helpful? Give feedback.
All reactions