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
When using clean_duplicate_history, and models with a default manager (objects = XYZ) which filters out model instances may fail to correctly de-duplicate history (because it can't see all of the instances).
This is very similar to issue #703 for bulk_update_with_history (and its fix, #709).
To Reproduce
Steps to reproduce the behavior:
Install django-simple-history
Add a model manager which applies filtering to a model which uses django-simple-history
Run clean_duplicate_history --auto
De-duplication of the model may be incomplete or not perform any work at all
Expected behavior clean_duplicate_history should use Django's base manager to ensure all model instances are checked for duplicates.
Describe the bug
When using
clean_duplicate_history
, and models with a default manager (objects = XYZ) which filters out model instances may fail to correctly de-duplicate history (because it can't see all of the instances).This is very similar to issue #703 for
bulk_update_with_history
(and its fix, #709).To Reproduce
Steps to reproduce the behavior:
clean_duplicate_history --auto
Expected behavior
clean_duplicate_history
should use Django's base manager to ensure all model instances are checked for duplicates.Note: #804 is the potential fix for this issue
The text was updated successfully, but these errors were encountered: