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 ca227581e2
commit a7cdbde3f3
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
)