[UPDT] BASE: Replace hx-post attributes of field is_enable

This commit is contained in:
Horilla
2024-09-16 15:19:20 +05:30
parent cf1c8f4d0f
commit 76f948e269

View File

@@ -2512,7 +2512,7 @@ class TrackLateComeEarlyOutForm(ModelForm):
super().__init__(*args, **kwargs)
self.fields["is_enable"].widget.attrs.update(
{
"hx-post": "enable-disable-tracking-late-come-early-out",
"hx-post": "/attendance/enable-disable-tracking-late-come-early-out",
"hx-target": "this",
"hx-trigger": "change",
}