From 8131feae8ac54c037e3a8c2b0534c37f6d10b80e Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Mon, 23 Aug 2021 09:36:05 -0400 Subject: [PATCH] Closes #7011: Add search field to VM interfaces filter form --- docs/release-notes/version-2.11.md | 1 + netbox/virtualization/forms.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/release-notes/version-2.11.md b/docs/release-notes/version-2.11.md index 48e9f5257..a33a79e6d 100644 --- a/docs/release-notes/version-2.11.md +++ b/docs/release-notes/version-2.11.md @@ -8,6 +8,7 @@ * [#6790](https://github.com/netbox-community/netbox/issues/6790) - Recognize a /32 IPv4 address as a child of a /32 IPv4 prefix * [#6872](https://github.com/netbox-community/netbox/issues/6872) - Add table configuration button to child prefixes view * [#6929](https://github.com/netbox-community/netbox/issues/6929) - Introduce `LOGIN_PERSISTENCE` configuration parameter to persist user sessions +* [#7011](https://github.com/netbox-community/netbox/issues/7011) - Add search field to VM interfaces filter form ### Bug Fixes diff --git a/netbox/virtualization/forms.py b/netbox/virtualization/forms.py index 0819882c3..c40f2582c 100644 --- a/netbox/virtualization/forms.py +++ b/netbox/virtualization/forms.py @@ -834,6 +834,10 @@ class VMInterfaceBulkRenameForm(BulkRenameForm): class VMInterfaceFilterForm(BootstrapMixin, forms.Form): model = VMInterface + q = forms.CharField( + required=False, + label=_('Search') + ) cluster_id = DynamicModelMultipleChoiceField( queryset=Cluster.objects.all(), required=False,