Closed tevinjoseph closed 8 years ago
you will need to add test and docs too :)
@auvipy I have updated the doc. I will add the test soon.
@tevinjoseph what problems did you have with PaginationKeyBit
? As I see, you've made the same thing.
@chibisov If we didn't pass page_size parameter and call API using api/news/?page=2 , the default PaginationKeyBit doesn't work.
I believe you should dig to PaginationKeyBit
. It could be a bug for your version of DRF. As I can see from tests PaginationKeyBit
should work without page_size
argument https://github.com/chibisov/drf-extensions/blob/master/tests_app/tests/unit/key_constructor/bits/tests.py#L355
@chibisov I'm using djangorestframework==3.2.2. There won't be any error if we use the default PaginationKeyBit, but for every page, it returns the result in the first page. That is, I get the result of api/news/?page=1, even if I'm calling api/news/?page=3
@tevinjoseph that the bug of PaginationKeyBit
. It's better to fix it.
@chibisov Ok, I will try to fix it and come up with a new pull request. Is that okay?
Added page no pagination support. The default PaginationKeyBit wasn't working for me.