-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Now it is possible to display viewset w/o paginator #2807
New issue
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
Conversation
Since pagination is now included in every generic viewset, we should have ability to disable it and we have it: paginator=None or pagination_class=None. But this piece of code relies on existence of property instead of its value.
@iorlas if |
@xordoquy with
Is it a good practice to close issue just because you don't believe me and you want me to write some tests? That's rude. |
@iorlas I'm sorry I was rude. |
Yeah, I understand it. I'm trying right now to write a test for this issue. It isn't easy for me since I'm not really familiar with tests in python world <- shame on me -_- Anyway, browsable API has really low amount of tests, so it is trickier than should be... |
Yea, I got it, wait few minutes before I'll push it |
So here we go. I know I should commit test before fix so you can see that test is failing, should I create new branch to make it possible? |
😢 |
@iorlas sorry, you could have more help on irc. |
I'm happier to see this change in without tests. |
Also hope no offense is taken @iorlas - we deal with a huge number of tickets - we need to prefer proactively closing them and then later reopening if we're wrong. If we don't do that we end up with a huge backlog of open issues that may not truly reflect the things that we think it's important for us to be working on. |
Nah, it's fine, I know what it feels like :) I was just afraid that this will be forgotten :( So, should I remove tests from branch? |
@iorlas yeah, just remove the tests from your branch and this pull request will be updated. |
@jpadilla done :) |
Now it is possible to display viewset w/o paginator
Ta. |
Hooray! 😄 |
Since pagination is now included in every generic viewset, we should have ability to disable it and we have it: paginator=None or pagination_class=None. But this piece of code relies on existence of property instead of its value.