add todo about unique constraints

This commit is contained in:
Laura Klünder 2024-08-26 15:01:40 +02:00
parent bf14090010
commit a7a5ec93e6

View file

@ -182,6 +182,7 @@ class CollectedChangesPrefetch:
instances: dict[ObjectReference, Model]
def apply(self):
# todo: what if unique constraint error occurs?
prev_values = copy.deepcopy(self.changes.prev_values)
for operation in self.changes.operations:
if isinstance(operation, CreateObjectOperation):