From d97113119812962ea89192d9acd33b0eb7c4b988 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Mon, 14 Nov 2022 09:24:12 -0500 Subject: [PATCH] Fixes #10897: Fix form widget styling on FHRP group form --- docs/release-notes/version-3.3.md | 1 + netbox/ipam/forms/models.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/docs/release-notes/version-3.3.md b/docs/release-notes/version-3.3.md index 89e6909ff..aa396f475 100644 --- a/docs/release-notes/version-3.3.md +++ b/docs/release-notes/version-3.3.md @@ -9,6 +9,7 @@ * [#10837](https://github.com/netbox-community/netbox/issues/10837) - Correct cookie paths when `BASE_PATH` is set * [#10874](https://github.com/netbox-community/netbox/issues/10874) - Remove erroneous link for contact assignment count * [#10881](https://github.com/netbox-community/netbox/issues/10881) - Fix dark mode coloring for data on device status page +* [#10897](https://github.com/netbox-community/netbox/issues/10897) - Fix form widget styling on FHRP group form * [#10910](https://github.com/netbox-community/netbox/issues/10910) - Fix cable creation links on power port view --- diff --git a/netbox/ipam/forms/models.py b/netbox/ipam/forms/models.py index 1986b1590..95723f80d 100644 --- a/netbox/ipam/forms/models.py +++ b/netbox/ipam/forms/models.py @@ -549,6 +549,11 @@ class FHRPGroupForm(NetBoxModelForm): fields = ( 'protocol', 'group_id', 'auth_type', 'auth_key', 'description', 'ip_vrf', 'ip_address', 'ip_status', 'tags', ) + widgets = { + 'protocol': StaticSelect(), + 'auth_type': StaticSelect(), + 'ip_status': StaticSelect(), + } def save(self, *args, **kwargs): instance = super().save(*args, **kwargs)