You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The management command clean_duplicate_history does only clean the history of model instances that exist. The documentation gives no indication to assume deleted model instances are excluded from cleaning.
To Reproduce
Save a history-enabled model instance multiple times without changing values
Delete the instance
Run clean_duplicate_history
Inspect the models history table in the database and find history entries with type ~ and unchanged data.
Expected behavior
History of deleted model instances is cleaned.
Environment:
Django Simple History Version: 3.7.0
Django Version: 5.1.4
Database Version: PostgreSQL 15.4
Python Version: 3.12.6
The text was updated successfully, but these errors were encountered:
Describe the bug
The management command
clean_duplicate_history
does only clean the history of model instances that exist. The documentation gives no indication to assume deleted model instances are excluded from cleaning.To Reproduce
clean_duplicate_history
~
and unchanged data.Expected behavior
History of deleted model instances is cleaned.
Environment:
The text was updated successfully, but these errors were encountered: