update
This commit is contained in:
10
app/views.py
10
app/views.py
@@ -4522,7 +4522,10 @@ class AllProductsTransportViewSet(viewsets.ModelViewSet):
|
||||
filters['product'] = product_type
|
||||
|
||||
if destination_province and destination_province != 'undefined':
|
||||
filters['destination_province'] = normalize_persian_arabic_text(destination_province)
|
||||
if destination_province == 'مرکزی':
|
||||
filters['destination_province'] = 'مرکزي'
|
||||
else:
|
||||
filters['destination_province'] = destination_province
|
||||
|
||||
if date1 and date2 and date1 != 'undefined' and date2 != 'undefined':
|
||||
try:
|
||||
@@ -4762,7 +4765,10 @@ class AllProductsTransportDashboardView(APIView):
|
||||
destination_province = request.GET.get('destination_province')
|
||||
kill_house_filterset_class = AllProductsTransportFilterSet
|
||||
if destination_province and destination_province != 'undefined':
|
||||
filters['destination_province'] = normalize_persian_arabic_text(destination_province)
|
||||
if destination_province == 'مرکزی':
|
||||
filters['destination_province'] = 'مركزي'
|
||||
else:
|
||||
filters['destination_province'] = destination_province
|
||||
queryset = AllProductsTransport.objects.filter(**filters)
|
||||
|
||||
if search and search != 'undefined' and search.strip():
|
||||
|
||||
Reference in New Issue
Block a user