I have a class in Python:
class CursorSetPagination(CursorPagination):
page_size = 1
page_size_query_param = 'per_page'
ordering = '-posted_on'
I want to call this class with change statement page_size = 5
in it. I tried with this code:
paginator = CursorSetPagination(page_size = 5)
It doesn't work. How can I do this?