From 61c51f99ab10052e7bb656e0e17239ac1693de95 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Mon, 8 Dec 2025 14:38:10 +0330 Subject: [PATCH] fix - dashboard quota search --- apps/product/web/api/v1/viewsets/quota_api.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/product/web/api/v1/viewsets/quota_api.py b/apps/product/web/api/v1/viewsets/quota_api.py index cb4a608..2210109 100644 --- a/apps/product/web/api/v1/viewsets/quota_api.py +++ b/apps/product/web/api/v1/viewsets/quota_api.py @@ -367,6 +367,15 @@ class QuotaViewSet(BaseViewSet, SoftDeleteMixin, QuotaDashboardService, viewsets dashboard of all quotas & their information """ + search_fields = [ + "quota__registerer_organization__name", + "quota__quota_id", + "quota__product__name", + "quota__sale_type", + "quota__sale_unit__unit", + "quota__group", + "quota__creator_info", + ] query_param = self.request.query_params # noqa # filter by date