Skip to content
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

Support for fetching arbitrary pages #6

Open
dominicglenn opened this issue Jul 10, 2012 · 2 comments
Open

Support for fetching arbitrary pages #6

dominicglenn opened this issue Jul 10, 2012 · 2 comments

Comments

@dominicglenn
Copy link

Could you add support to handle fetching arbitrary pages, e.g. fetching page 3 when you've only actually fetched the first page so far; thus skipping page 2 entirely?

@amccloud
Copy link
Owner

Yea that could be useful. Is this for handling page numbers from urls/routes? Tastypie's pagination is more like a cursor so i'm cautious about adding "pages" to the api. I'd counter with with the ability to fetch from an arbitrary offset vs. pages. You could then pass the offset to urls.

@dominicglenn
Copy link
Author

Considering that tastypie actually returns the total count of the objects would it not be relatively easy to do bounds checking etc knowing how big each page was?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants