Closed
Description
Hey.
clear_duplicate_history
command deletes only absolute identical instances, but there is an issue: if an instance has auto updated fields (e.g. version, updated_at) the command is not going to delete these duplicates
Is there a way to add a feature which would allow providing an exclude_list arg to the command and passing it to the diff_against method?
Activity
rossmechanic commentedon Jun 19, 2020
@MaximZemskov, absolutely. Feel free to add a PR to update the
clean_duplicate_history
management command to allow for excluded fields. Think you would just have to update thediff_against
method to ignore excluded fields[django-commons#674] Allow to exclude some fields from `diff_against`…
[django-commons#674] Allow to exclude some fields from `diff_against`…
diff_against
check #680MaximZemskov commentedon Jun 23, 2020
@rossmechanic #680
Allow to exclude some fields from `diff_against` check (#680)