django-auditlog/auditlog
Christopher Charbonneau Wells 5621777622
fix: use sender for m2m signal dispatch connection (#686)
* fix: use sender for m2m signal dispatch connection

This fix adds support for a use case where a single m2m through model is
used on multiple models. When the reciever is used for the dispatch uid
in this use case it cause duplicated logs because the through model
singal connection happens multiple times.

By changing the m2m signal connection to use the sender for the dispatch
uid this duplication is prevented because the signal connection only
happens once for the through model.

Refs: #685

* fix(format): apply black formatting

* add test and changelog entry

* remove unused import

* correct import sorting

* move change log message to correct section
2024-11-12 16:35:06 +01:00
..
management feat: Add truncate option to flush command (#681) 2024-10-21 18:12:29 +02:00
migrations Drop Python 3.8 support (#678) 2024-10-17 18:40:21 +02:00
__init__.py Drop support for Python 3.7 (#546) 2023-07-13 23:56:08 +02:00
admin.py Allow cascade deletion of auditlog entries (#556) 2023-08-27 11:12:39 +02:00
apps.py feat: give users the option to run the json migration asyncly (#495) 2023-08-13 11:38:21 +02:00
cid.py fix: don't set the correlation_id if the AUDITLOG_CID_GETTER is None (#565) 2023-09-20 13:23:45 +03:00
conf.py Add AUDITLOG_TRUNCATE_CHANGES_DISPLAY and AUDITLOG_TRUNCATE_LIMIT (#684) 2024-11-04 14:39:25 +01:00
context.py Added remote port (#671) 2024-10-07 15:52:34 +02:00
diff.py Fixed a problem when setting Value(None) in JSONField (#646) 2024-05-27 12:58:58 +03:30
filters.py Added support for Correlation ID 2022-12-23 15:09:32 +01:00
middleware.py Added remote port (#671) 2024-10-07 15:52:34 +02:00
mixins.py fixed getting field's verbose_name (#508) 2023-05-18 01:59:11 +03:30
models.py Add AUDITLOG_TRUNCATE_CHANGES_DISPLAY and AUDITLOG_TRUNCATE_LIMIT (#684) 2024-11-04 14:39:25 +01:00
receivers.py feat: include LogEntry instance in post_log signal (#605) 2024-02-08 21:55:46 +01:00
registry.py fix: use sender for m2m signal dispatch connection (#686) 2024-11-12 16:35:06 +01:00
signals.py feat: include LogEntry instance in post_log signal (#605) 2024-02-08 21:55:46 +01:00