update AllProductsTransportViewSet

This commit is contained in:
2026-02-09 13:56:41 +03:30
parent 592e324b5c
commit 62af954ae4

View File

@@ -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