3👍
Why not use something made such as the Audit Trail app? I can’t really see how inheritance really fits into the abstraction needed for logging. Audit Trail uses a simple declaration in the class which packages all of the activities.
0👍
Two possible pre-coded solutions are https://github.com/etianen/django-reversion and http://code.djangoproject.com/wiki/AuditTrail . More options are at https://www.djangopackages.com/grids/g/model-audit/
As you note, foreign key references are tricky, especially for Many-To-Many models. You have to decide if the old models are a constraint on new tables, else break those relationships which complicates “undo” considerably.
- [Django]-"detail": "method \delete\ not allowed" django
- [Django]-Having trouble making a custom django view decorator (with args)
- [Django]-How may i install the Python Imaging Library to django environment?
- [Django]-Django website as a backend with Google+ Login
Source:stackexchange.com