fixed interface hx query #12145

This commit is contained in:
Abhimanyu Saharan 2023-04-02 13:35:07 +05:30
parent 8d6c591535
commit d2edb055d6
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class DataSourceForm(NetBoxModelForm):
'type': forms.Select( 'type': forms.Select(
attrs={ attrs={
'hx-get': '.', 'hx-get': '.',
'hx-include': '#form_fields input', 'hx-include': '#form_fields input, #form_fields select',
'hx-target': '#form_fields', 'hx-target': '#form_fields',
} }
), ),

View File

@ -321,7 +321,7 @@ class VMInterfaceForm(InterfaceCommonForm, NetBoxModelForm):
'mode': forms.Select( 'mode': forms.Select(
attrs={ attrs={
'hx-get': '.', 'hx-get': '.',
'hx-include': '#form_fields input', 'hx-include': '#form_fields input, #form_fields select',
'hx-target': '#form_fields', 'hx-target': '#form_fields',
} }
), ),