Skip to content

Commit 0c9d671

Browse files
committed
Fixes: #18316 - Fix PrefixIndex reference to 'site' (#18322)
* Fix PrefixIndex reference to 'site' * Fix ClusterIndex reference to 'site' and add 'scope' to WirelessLANIndex
1 parent f050b4c commit 0c9d671

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

netbox/ipam/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class PrefixIndex(SearchIndex):
7979
('description', 500),
8080
('comments', 5000),
8181
)
82-
display_attrs = ('site', 'vrf', 'tenant', 'vlan', 'status', 'role', 'description')
82+
display_attrs = ('scope', 'vrf', 'tenant', 'vlan', 'status', 'role', 'description')
8383

8484

8585
@register_search

netbox/virtualization/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ClusterIndex(SearchIndex):
1010
('description', 500),
1111
('comments', 5000),
1212
)
13-
display_attrs = ('type', 'group', 'status', 'tenant', 'site', 'description')
13+
display_attrs = ('type', 'group', 'status', 'tenant', 'scope', 'description')
1414

1515

1616
@register_search

netbox/wireless/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class WirelessLANIndex(SearchIndex):
1111
('auth_psk', 2000),
1212
('comments', 5000),
1313
)
14-
display_attrs = ('group', 'status', 'vlan', 'tenant', 'description')
14+
display_attrs = ('group', 'status', 'vlan', 'tenant', 'scope', 'description')
1515

1616

1717
@register_search

0 commit comments

Comments
 (0)