From 87afa5bc5a4b8405a240903ca9b3b35e051071c0 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Tue, 18 Nov 2025 13:00:56 +0330 Subject: [PATCH] add - distinct active quotas --- apps/product/web/api/v1/viewsets/quota_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/product/web/api/v1/viewsets/quota_api.py b/apps/product/web/api/v1/viewsets/quota_api.py index 50f9537..7248483 100644 --- a/apps/product/web/api/v1/viewsets/quota_api.py +++ b/apps/product/web/api/v1/viewsets/quota_api.py @@ -359,7 +359,7 @@ class QuotaViewSet(BaseViewSet, SoftDeleteMixin, viewsets.ModelViewSet, DynamicS # paginate queryset page = self.paginate_queryset( - queryset.order_by('-modify_date') + queryset.order_by('-modify_date').distinct() ) if page is not None: # noqa serializer = self.get_serializer(page, many=True, context={'org': get_organization_by_user(request.user)})