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

Buggy PAGINATION with order by id DESC #68

Open
aktywnitu opened this issue Jun 21, 2014 · 1 comment
Open

Buggy PAGINATION with order by id DESC #68

aktywnitu opened this issue Jun 21, 2014 · 1 comment

Comments

@aktywnitu
Copy link

EXAMPLE DB:
1.
2.
3.
4.

PAGINATION: 2 results per page, Results.objects.all().order_by('-id')
FIRST PAGE:
4.
3.

NOW SOME USER HAS ADDED ONE RECORD, DB NOW:
1.
2.
3.
4.
5.

AFTER IT WE WANT GET SECOND PAGE: OFFSET 2
3.
2.

BUG: RECORD WITH ID 3. SHOWED TWO TIMES:

PLEASE SUGGEST SOLUTION!

@bostuh
Copy link

bostuh commented Feb 20, 2015

What is the status of this issue?

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