mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
7537 add sn to search
This commit is contained in:
parent
26084f293c
commit
38b86f72ff
@ -253,7 +253,8 @@ class VirtualMachineFilterSet(
|
|||||||
Q(description__icontains=value) |
|
Q(description__icontains=value) |
|
||||||
Q(comments__icontains=value) |
|
Q(comments__icontains=value) |
|
||||||
Q(primary_ip4__address__startswith=value) |
|
Q(primary_ip4__address__startswith=value) |
|
||||||
Q(primary_ip6__address__startswith=value)
|
Q(primary_ip6__address__startswith=value) |
|
||||||
|
Q(serial_number__icontains=value)
|
||||||
)
|
)
|
||||||
|
|
||||||
def _has_primary_ip(self, queryset, name, value):
|
def _has_primary_ip(self, queryset, name, value):
|
||||||
|
Loading…
Reference in New Issue
Block a user