mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
Reverted cursor pagination for /roles/
Turns out it doesn't play well with our custom filters, and performance is still tolerable with the normal pagination..
This commit is contained in:
@@ -3480,9 +3480,6 @@ class RoleList(ListAPIView):
|
|||||||
model = Role
|
model = Role
|
||||||
serializer_class = RoleSerializer
|
serializer_class = RoleSerializer
|
||||||
permission_classes = (IsAuthenticated,)
|
permission_classes = (IsAuthenticated,)
|
||||||
class CursorPaginationById(CursorPagination):
|
|
||||||
ordering = 'id'
|
|
||||||
pagination_class = CursorPaginationById
|
|
||||||
new_in_300 = True
|
new_in_300 = True
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user