From b241c5f0d7b68429a4cfcd270515e982f9b1617f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Tue, 25 Dec 2018 22:40:08 +0100 Subject: [PATCH] was this the bug? --- src/c3nav/editor/models/changeset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c3nav/editor/models/changeset.py b/src/c3nav/editor/models/changeset.py index 25f251a6..39f68096 100644 --- a/src/c3nav/editor/models/changeset.py +++ b/src/c3nav/editor/models/changeset.py @@ -343,8 +343,8 @@ class ChangeSet(models.Model): except FieldDoesNotExist: # todo: fix this continue - objects.setdefault(LocationSlug, {})[target.pk] = target - objects.setdefault(target._obj.__class__, {})[target.pk] = target + objects.setdefault(LocationSlug, {})[target.pk] = target._obj + objects.setdefault(target.__class__, {})[target.pk] = target._obj return objects