update AllProductsTransportDashboardView

This commit is contained in:
2026-02-10 14:30:11 +03:30
parent 62af954ae4
commit 543ba5875b

View File

@@ -4839,7 +4839,13 @@ class AllProductsTransportDashboardView(APIView):
filters={'trash':False} filters={'trash':False}
if province == 'undefined': if province == 'undefined':
province = None province = None
jihadi_origin = request.GET.get('origin_code')
jihadi_destination = request.GET.get('destination_code')
if jihadi_origin:
filters['jihadi_origin'] = jihadi_origin
if jihadi_destination:
filters['jihadi_destination'] = jihadi_destination
if product_type and product_type != 'undefined': if product_type and product_type != 'undefined':
filters['product'] = product_type filters['product'] = product_type