Clear modified fields when cancelling record

This commit is contained in:
Nicolas Évrard committed 2011-04-19 13:34:37 +02:00
1 parent 201f33caeb
commit 144efea8dc
1 file changed
+1
@@ -229,6 +229,7 @@ class Record(SignalEvent):
def cancel(self):
self._loaded.clear()
self.modified_fields.clear()
def get_timestamp(self):
result = {self.model_name + ',' + str(self.id): self._timestamp}