Open gghildyal opened 3 months ago
This was found in 3.0.b4.
Thanks @gghildyal for reporting this.
Yeah, django-auditlog
has pre_log
and post_log
signals but it doesn't send them in m2m_changed
.
It would be good to send these signals there.
Usually when creating a model object, first the model is created with non-m2m fields and then m2m fields are set on the model to save it. The first operator creates a LogEntry object and sends a pre_log and post_log signals as expected. On receiving m2m_changed signal, a LogEntry is created for the change but a pre_log or post_log signal isn't sent.