track object deletion
This commit is contained in:
parent
e84028ffa8
commit
b062e76b7a
2 changed files with 6 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue