From 03b4bf18fd691c7b4c9a71845b5c30d0492b7cda Mon Sep 17 00:00:00 2001 From: Arjuna Del Toso Date: Tue, 29 Oct 2024 15:18:19 -0400 Subject: [PATCH] pass_instances_as_well --- auditlog/diff.py | 5 ++++- setup.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/auditlog/diff.py b/auditlog/diff.py index 0f51722..690c10b 100644 --- a/auditlog/diff.py +++ b/auditlog/diff.py @@ -212,7 +212,10 @@ def model_instance_diff( if old_value != new_value: if field.name in custom_fields_callbacks: custom_diff_result = custom_fields_callbacks[field.name]( - old_value, new_value + old_value, + new_value, + old, + new, ) diff[field.name] = ( "[CUSTOM FIELD] Showing only the differences in the 'To' field ->", diff --git a/setup.py b/setup.py index 5927137..00ee0f8 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,6 @@ setup( install_requires=[ "Django>=3.2", "python-dateutil>=2.7.0", - "deepdiff==7.0.*", ], zip_safe=False, classifiers=[