import - quota dashboard & some changes in product quota stat
This commit is contained in:
@@ -113,7 +113,8 @@ class RoleViewSet(BaseViewSet, SoftDeleteMixin, viewsets.ModelViewSet):
|
||||
def list(self, request, *args, **kwargs):
|
||||
""" all roles """
|
||||
|
||||
role = self.paginate_queryset(self.get_queryset().order_by('-modify_date'))
|
||||
queryset = self.filter_queryset(self.get_queryset().order_by('-modify_date'))
|
||||
role = self.paginate_queryset(queryset)
|
||||
if role is not None: # noqa
|
||||
serializer = self.get_serializer(role, many=True)
|
||||
return self.get_paginated_response(serializer.data)
|
||||
|
||||
Reference in New Issue
Block a user