From d96c9a7945b81c462d272299a8ad5d0ea99d618e Mon Sep 17 00:00:00 2001 From: Sergey Tokarenko Date: Tue, 4 Jan 2022 01:44:33 +0200 Subject: [PATCH] feat: Ability to do global search by tag --- netbox/netbox/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/netbox/constants.py b/netbox/netbox/constants.py index 7cbfb031b..8ec8804e7 100644 --- a/netbox/netbox/constants.py +++ b/netbox/netbox/constants.py @@ -182,7 +182,7 @@ SEARCH_TYPES = OrderedDict(( }), # Other ('tag', { - 'queryset': Tag.objects.prefetch_related('prefix'), + 'queryset': Tag.objects.prefetch_related('prefix', 'ipaddress', 'vlan', 'device', 'location', 'site'), 'filterset': TagFilterSet, 'table': TagTable, 'url': 'extras:tag_list',