remove unused htmx attributes

This commit is contained in:
Andreas Zweili 2022-02-07 12:21:11 +01:00
parent f3e3dfbf06
commit 844827b7e1
1 changed files with 1 additions and 2 deletions

View File

@ -30,8 +30,7 @@ class DeviceCategoryForm(forms.ModelForm):
self.helper = FormHelper()
self.helper.attrs = {
'hx-post': reverse_lazy('device_category_create'),
'hx-target': '#device-update',
'hx-swap': 'innerHTML'
'id': 'device-category-form',
}
self.helper.layout = Layout(
Field('name'),