Skip to content

Commit

Permalink
Changing from cursor to page number pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis authored and daviddavis committed Aug 2, 2018
1 parent 24aca7c commit 53f4133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulpcore/pulpcore/app/pagination.py
@@ -1,7 +1,7 @@
from rest_framework import pagination


class IDPagination(pagination.CursorPagination):
class IDPagination(pagination.PageNumberPagination):
"""
Paginate an API view naively, based on the ID of objects being iterated over.
Expand All @@ -17,7 +17,7 @@ class IDPagination(pagination.CursorPagination):
max_page_size = 5000


class NamePagination(pagination.CursorPagination):
class NamePagination(pagination.PageNumberPagination):
"""
Paginate an API view based on the value of the 'name' field of objects being iterated over.
Expand Down

0 comments on commit 53f4133

Please sign in to comment.