fix - search of quotas dashboard
This commit is contained in:
@@ -381,6 +381,7 @@ class QuotaViewSet(BaseViewSet, SoftDeleteMixin, QuotaDashboardService, viewsets
|
||||
# filter by date
|
||||
start_date = query_param.get('start') if 'start' in query_param.keys() else None
|
||||
end_date = query_param.get('end') if 'end' in query_param.keys() else None
|
||||
query_string = query_param.get('search') if 'search' in query_param.keys() else None
|
||||
|
||||
# filter by quota is close or open
|
||||
is_closed = True if 'is_closed' in query_param.keys() else False
|
||||
@@ -391,7 +392,8 @@ class QuotaViewSet(BaseViewSet, SoftDeleteMixin, QuotaDashboardService, viewsets
|
||||
start_date=start_date,
|
||||
end_date=end_date,
|
||||
search_fields=search_fields,
|
||||
quota_is_closed=is_closed
|
||||
quota_is_closed=is_closed,
|
||||
query_string=query_string
|
||||
)
|
||||
|
||||
return Response(quota_dashboard)
|
||||
|
||||
Reference in New Issue
Block a user