From 3fb464731d9f79cf452ce797ef32c47a8edff4b3 Mon Sep 17 00:00:00 2001 From: Matthias Schoettle Date: Fri, 13 Sep 2024 19:43:00 +0000 Subject: [PATCH] Log correct signal names on CRUDEvent creation exception --- easyaudit/signals/crud_flows.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easyaudit/signals/crud_flows.py b/easyaudit/signals/crud_flows.py index a87627df..075bb0f6 100644 --- a/easyaudit/signals/crud_flows.py +++ b/easyaudit/signals/crud_flows.py @@ -85,7 +85,7 @@ def post_save_crud_flow(instance, object_json_repr): object_json_repr, ) except Exception: - handle_flow_exception(instance, "pre_save") + handle_flow_exception(instance, "post_save") def m2m_changed_crud_flow( # noqa: PLR0913 @@ -106,7 +106,7 @@ def m2m_changed_crud_flow( # noqa: PLR0913 changed_fields=changed_fields, ) except Exception: - handle_flow_exception(instance, "pre_save") + handle_flow_exception(instance, "m2m_changed") def post_delete_crud_flow(instance, object_json_repr): @@ -118,4 +118,4 @@ def post_delete_crud_flow(instance, object_json_repr): ) except Exception: - handle_flow_exception(instance, "pre_save") + handle_flow_exception(instance, "post_delete")