1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #2779: Include "none" option when filter IP addresses by role

This commit is contained in:
Jeremy Stretch
2019-01-15 11:26:41 -05:00
parent 4a290f3834
commit 1d7a7e2d1d
3 changed files with 22 additions and 5 deletions

View File

@@ -913,6 +913,7 @@ class IPAddressFilterForm(BootstrapMixin, CustomFieldFilterForm):
choices=IPADDRESS_ROLE_CHOICES,
annotate=IPAddress.objects.all(),
annotate_field='role',
include_null=True,
required=False
)