track object deletion

This commit is contained in:
Laura Klünder 2017-06-13 03:39:12 +02:00
parent e84028ffa8
commit b062e76b7a
2 changed files with 6 additions and 3 deletions

View file

@ -131,6 +131,9 @@ class ModelInstanceWrapper(BaseWrapper):
self._changeset.add_update(self, name=field.name, value=new_value, author=author)
def delete(self, author=None):
self._changeset.add_delete(self, author=author)
class ChangesQuerySet():
def __init__(self, changeset, model, author):