From 62af954ae48bd6df6642762572d7a1a5e72eea88 Mon Sep 17 00:00:00 2001 From: 7nimor <7nimor@gmail.com> Date: Mon, 9 Feb 2026 13:56:41 +0330 Subject: [PATCH] update AllProductsTransportViewSet --- app/views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/views.py b/app/views.py index 02b2383..1c01114 100644 --- a/app/views.py +++ b/app/views.py @@ -4601,6 +4601,13 @@ class AllProductsTransportViewSet(viewsets.ModelViewSet): date1 = request.GET.get('date1') date2 = request.GET.get('date2') search = request.GET.get('search') + 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': filters['product'] = product_type