django-auditlog/auditlog_tests
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
..
fixtures Added support for Correlation ID 2022-12-23 15:09:32 +01:00
templates Added ACCESS action and enabled logging of object accesses (#436) 2022-11-07 08:51:00 +01:00
__init__.py Remove default_app_config configuration 2022-05-02 14:48:58 +02:00
admin.py Use admin for test site 2020-09-07 16:52:32 +02:00
apps.py Add black and format files with black. 2020-12-06 23:10:18 +01:00
manage.py Clean up project structure 2020-09-07 16:52:32 +02:00
models.py fix: use sender for m2m signal dispatch connection (#686) 2024-11-12 16:35:06 +01:00
test_commands.py feat: Add truncate option to flush command (#681) 2024-10-21 18:12:29 +02:00
test_settings.py [pre-commit.ci] pre-commit autoupdate (#604) 2024-02-10 21:18:46 +01:00
test_two_step_json_migration.py Added --no-color args in test migration (#670) 2024-10-01 18:19:58 +02:00
tests.py fix: use sender for m2m signal dispatch connection (#686) 2024-11-12 16:35:06 +01:00
urls.py Added ACCESS action and enabled logging of object accesses (#436) 2022-11-07 08:51:00 +01:00
views.py Added ACCESS action and enabled logging of object accesses (#436) 2022-11-07 08:51:00 +01:00