diff --git a/voussoirkit/worms.py b/voussoirkit/worms.py index 0b90e6b..88b61f3 100644 --- a/voussoirkit/worms.py +++ b/voussoirkit/worms.py @@ -455,7 +455,7 @@ class DatabaseWithCaching(Database, metaclass=abc.ABCMeta): instance = object_class(self, object_row) if object_cache is not None: - object_cache[object_id] = instance + object_cache[instance.id] = instance return instance