From 4d9f707c583206d3bc88a3767d706043a9d87b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Tue, 10 Apr 2018 12:58:52 +0000 Subject: [PATCH] Search in switch.location replaced by switch.switchbay.building.name --- search/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/views.py b/search/views.py index 65bcaeca..732ec510 100644 --- a/search/views.py +++ b/search/views.py @@ -281,7 +281,7 @@ def search_single_word(word, filters, user, ) | Q( interface__ipv4__ipv4__icontains=word ) | Q( - location__icontains=word + switchbay__building__name__icontains=word ) | Q( stack__name__icontains=word ) | Q(