From e37f589e3b9de76789ff03e114e54723b946c251 Mon Sep 17 00:00:00 2001 From: Julien Castets Date: Fri, 9 Feb 2024 14:29:26 +0100 Subject: [PATCH] Allow to search ads by number --- mesads/app/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mesads/app/views.py b/mesads/app/views.py index abbddfb..6a13aec 100644 --- a/mesads/app/views.py +++ b/mesads/app/views.py @@ -353,6 +353,7 @@ def get_queryset(self): | Q(owner_name__icontains=q) | Q(clean_immatriculation_plate__icontains=q) | Q(epci_commune__libelle__icontains=q) + | Q(number__icontains=q) ) # Add ordering on the number. CAST is necessary in the case the ADS number is not an integer.