diff --git a/netbox/core/forms/model_forms.py b/netbox/core/forms/model_forms.py index 99e2786ef..891fd53d8 100644 --- a/netbox/core/forms/model_forms.py +++ b/netbox/core/forms/model_forms.py @@ -26,7 +26,7 @@ class DataSourceForm(NetBoxModelForm): 'type': forms.Select( attrs={ 'hx-get': '.', - 'hx-include': '#form_fields input', + 'hx-include': '#form_fields input, #form_fields select', 'hx-target': '#form_fields', } ), diff --git a/netbox/virtualization/forms/model_forms.py b/netbox/virtualization/forms/model_forms.py index a807b4fd9..236f545a2 100644 --- a/netbox/virtualization/forms/model_forms.py +++ b/netbox/virtualization/forms/model_forms.py @@ -321,7 +321,7 @@ class VMInterfaceForm(InterfaceCommonForm, NetBoxModelForm): 'mode': forms.Select( attrs={ 'hx-get': '.', - 'hx-include': '#form_fields input', + 'hx-include': '#form_fields input, #form_fields select', 'hx-target': '#form_fields', } ),