From bd74e2f30bcf94a265e6f5b8753aa040f340c258 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 17 Jan 2019 16:02:16 -0500 Subject: [PATCH] Closes #2782: Add is_pool field for prefix filtering --- CHANGELOG.md | 1 + netbox/ipam/forms.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab5d8b492..5a3bea3da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ v2.5.4 (FUTURE) * [#2590](https://github.com/digitalocean/netbox/issues/2590) - Implemented the color picker with Select2 to show colors in the background * [#2735](https://github.com/digitalocean/netbox/issues/2735) - Implemented Select2 for all list filter form select elements * [#2753](https://github.com/digitalocean/netbox/issues/2753) - Implemented Select2 to replace most all instances of select fields in forms +* [#2782](https://github.com/digitalocean/netbox/issues/2782) - Add `is_pool` field for prefix filtering ## Bug Fixes diff --git a/netbox/ipam/forms.py b/netbox/ipam/forms.py index b097ca048..0864223d1 100644 --- a/netbox/ipam/forms.py +++ b/netbox/ipam/forms.py @@ -570,6 +570,13 @@ class PrefixFilterForm(BootstrapMixin, CustomFieldFilterForm): null_option=True, ) ) + is_pool = forms.NullBooleanField( + required=False, + label='Is a pool', + widget=StaticSelect2( + choices=BOOLEAN_WITH_BLANK_CHOICES + ) + ) expand = forms.BooleanField( required=False, label='Expand prefix hierarchy'