django-auditlog icon indicating copy to clipboard operation
django-auditlog copied to clipboard

Added support for tracking FK ID updates.

Open barqshasbite opened this issue 5 years ago • 1 comments

In Django, you can update the raw ID of a ForeignKey relation using the '*_id' field without assigning it a new model. This needs to be logged by the audit framework. Currently it does not detect these changes.

barqshasbite avatar Mar 15 '19 21:03 barqshasbite

Codecov Report

Merging #202 into master will decrease coverage by 0.29%. The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #202     +/-   ##
=========================================
- Coverage   83.43%   83.13%   -0.3%     
=========================================
  Files          19       19             
  Lines         513      516      +3     
=========================================
+ Hits          428      429      +1     
- Misses         85       87      +2
Impacted Files Coverage Δ
src/auditlog/diff.py 84.5% <50%> (-2.26%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a22978e...4fb7654. Read the comment docs.

codecov-io avatar Mar 15 '19 21:03 codecov-io

@hramezani do you think this and #280 are related?

aqeelat avatar Dec 17 '22 20:12 aqeelat

This change is no longer valid with the latest code base. A new pull request has been created to address the issue in latest master.

barqshasbite avatar May 05 '23 16:05 barqshasbite