-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete old Historical Records #198
Comments
Also the ability to delete old record via the admin would be nice. |
👍 |
This might go without saying, but doing this with the ORM is pretty easy: MyModel.history.filter(history_date__lt=timezone.now() - timedelta(days=90)).delete() That should delete all historical records older than 90 days. You could also filter on |
If django-simple-history can self-manage by having the ability to delete old history records, that would be very useful. |
Being addressed in #483 |
Dupe of #313 |
To keep the history growing too much I'd like to have a function that deletes all historical records older than x days. So the function can be reused in a management command or a celery task
The text was updated successfully, but these errors were encountered: