From 3e58b547497395fe98d1151bbca9518879ae1df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Thu, 21 Nov 2024 13:55:46 +0100 Subject: [PATCH] add another todo which was missing --- src/c3nav/editor/changes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/c3nav/editor/changes.py b/src/c3nav/editor/changes.py index f0f636a0..8fe44535 100644 --- a/src/c3nav/editor/changes.py +++ b/src/c3nav/editor/changes.py @@ -400,6 +400,8 @@ class ChangedObjectCollection(BaseSchema): # todo: finish this... + # todo: don't forget nullable references and unique values + if isinstance(new_operation, CreateObjectOperation): # if an object was created it's no longer missing new_situation.missing_objects.get(new_operation.obj.model, set()).discard(new_operation.obj.id)