Home:ALL Converter>Preventing Deletion with django-simple-history

Preventing Deletion with django-simple-history

Ask Time:2017-12-19T22:05:51         Author:yam

Json Formatter

I started using django-simple-history in order to keep the history but when I delete an object (from admin page at least) I notice that it is gone for good.

I suppose I could create tags and "hide" objects instead of deleting in my views but would be nice if there is an easier way with django-simple-history, which would also cover admin operations.

Author:yam,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/47888720/preventing-deletion-with-django-simple-history
yy