There are a lot of discussions around the deletion of the objects covered by reversion.
I understand the point why tracking the "final" version of an object before deletion breaks multiple places in the package, and I agree that it doesn't make a lot of sense.
@etianen suggested creating a separate model to track deletions here.
What do you think about adding such a model to django-reversion. I think it could be integrated into the same mechanics for keeping the revision comment and the current user. Also, the deletion info can be incorporated into the Deleted Objects view in Django admin and show user/comment near the object.
The model can look like the following:
class DeletedObjectEvent(models.Model):
content_type = models.ForeignKey('ContentType')
object_id = models.CharField()
comment = models.TextField()
user = models.ForeignKey('User')
date_deleted = models.DateTimeField()
Since such a table can store multiple deletion events, we can incorporate this info into the History view as well, so users might see the full history of updates/deletions/restorations
I believe it can become a very helpful addition that users have been asking for years.
There are a lot of discussions around the deletion of the objects covered by reversion.
I understand the point why tracking the "final" version of an object before deletion breaks multiple places in the package, and I agree that it doesn't make a lot of sense.
@etianen suggested creating a separate model to track deletions here.
What do you think about adding such a model to django-reversion. I think it could be integrated into the same mechanics for keeping the revision comment and the current user. Also, the deletion info can be incorporated into the Deleted Objects view in Django admin and show user/comment near the object.
The model can look like the following:
Since such a table can store multiple deletion events, we can incorporate this info into the History view as well, so users might see the full history of updates/deletions/restorations
I believe it can become a very helpful addition that users have been asking for years.