Implement undo for pset operators. See #1475.

This commit is contained in:
Dion Moult
2021-07-05 17:09:04 +10:00
parent d832c9780a
commit 30ba45f6cb
2 changed files with 21 additions and 1 deletions
+2 -1
View File
@@ -72,7 +72,8 @@ class Transaction:
self.batch_inverses = []
def store_create(self, element):
self.operations.append({"action": "create", "value": self.serialise_entity_instance(element)})
if element.id():
self.operations.append({"action": "create", "value": self.serialise_entity_instance(element)})
def store_edit(self, element, index, value):
self.operations.append(