feat: Ability to do global search by tag

This commit is contained in:
Sergey Tokarenko 2022-01-04 01:44:33 +02:00
parent d5bdc3f567
commit d96c9a7945

View File

@ -182,7 +182,7 @@ SEARCH_TYPES = OrderedDict((
}), }),
# Other # Other
('tag', { ('tag', {
'queryset': Tag.objects.prefetch_related('prefix'), 'queryset': Tag.objects.prefetch_related('prefix', 'ipaddress', 'vlan', 'device', 'location', 'site'),
'filterset': TagFilterSet, 'filterset': TagFilterSet,
'table': TagTable, 'table': TagTable,
'url': 'extras:tag_list', 'url': 'extras:tag_list',