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(
attrs={
'hx-get': '.',
'hx-include': '#form_fields input',
'hx-include': '#form_fields input, #form_fields select',
'hx-target': '#form_fields',
}
),

View File

@ -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',
}
),