From a7a5ec93e6226394e05287f769e797becdbf619e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Mon, 26 Aug 2024 15:01:40 +0200 Subject: [PATCH] add todo about unique constraints --- src/c3nav/editor/operations.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/c3nav/editor/operations.py b/src/c3nav/editor/operations.py index f25edf93..cbc71153 100644 --- a/src/c3nav/editor/operations.py +++ b/src/c3nav/editor/operations.py @@ -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):