[UPDT] HORILLA_VIEWS: Updated HorillaFormView class get_context_data function by adding hx_target in context
This commit is contained in:
@@ -1898,6 +1898,7 @@ class HorillaFormView(FormView):
|
||||
context["form_class_path"] = self.form_class_path
|
||||
context["view_id"] = self.view_id
|
||||
context["hx_confirm"] = self.hx_confirm
|
||||
context["hx_target"] = self.request.META.get("HTTP_HX_TARGET", "this")
|
||||
pk = None
|
||||
if self.form.instance:
|
||||
pk = self.form.instance.pk
|
||||
|
||||
Reference in New Issue
Block a user