routes filter
This commit is contained in:
SDE
2023-08-25 15:19:53 +03:00
parent 2fcc7321cb
commit f1246b3b27

View File

@@ -15,6 +15,12 @@ def get_routes_Dict(user=None, data=None):
'owner': user
})
if data:
for key, val in data.items():
if val:
if key not in ('from_address_point_txt', 'to_address_point_txt', 'csrfmiddlewaretoken', 'sort'):
kwargs.update({key: val})
routes = Route.objects.filter(**kwargs).order_by('-modifiedDT')
res_Dict = {}