add - distinct active quotas
This commit is contained in:
@@ -359,7 +359,7 @@ class QuotaViewSet(BaseViewSet, SoftDeleteMixin, viewsets.ModelViewSet, DynamicS
|
|||||||
|
|
||||||
# paginate queryset
|
# paginate queryset
|
||||||
page = self.paginate_queryset(
|
page = self.paginate_queryset(
|
||||||
queryset.order_by('-modify_date')
|
queryset.order_by('-modify_date').distinct()
|
||||||
)
|
)
|
||||||
if page is not None: # noqa
|
if page is not None: # noqa
|
||||||
serializer = self.get_serializer(page, many=True, context={'org': get_organization_by_user(request.user)})
|
serializer = self.get_serializer(page, many=True, context={'org': get_organization_by_user(request.user)})
|
||||||
|
|||||||
Reference in New Issue
Block a user