Explorar o código

Closes #2782: Add is_pool field for prefix filtering

Jeremy Stretch %!s(int64=7) %!d(string=hai) anos
pai
achega
bd74e2f30b
Modificáronse 2 ficheiros con 8 adicións e 0 borrados
  1. 1 0
      CHANGELOG.md
  2. 7 0
      netbox/ipam/forms.py

+ 1 - 0
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
 * [#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
 * [#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
 * [#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
 ## Bug Fixes
 
 

+ 7 - 0
netbox/ipam/forms.py

@@ -570,6 +570,13 @@ class PrefixFilterForm(BootstrapMixin, CustomFieldFilterForm):
             null_option=True,
             null_option=True,
         )
         )
     )
     )
+    is_pool = forms.NullBooleanField(
+        required=False,
+        label='Is a pool',
+        widget=StaticSelect2(
+            choices=BOOLEAN_WITH_BLANK_CHOICES
+        )
+    )
     expand = forms.BooleanField(
     expand = forms.BooleanField(
         required=False,
         required=False,
         label='Expand prefix hierarchy'
         label='Expand prefix hierarchy'