7537 add sn to search

This commit is contained in:
Arthur 2024-06-04 11:03:34 -07:00
parent 26084f293c
commit 38b86f72ff

View File

@ -253,7 +253,8 @@ class VirtualMachineFilterSet(
Q(description__icontains=value) |
Q(comments__icontains=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):