was this the bug?

This commit is contained in:
Laura Klünder 2018-12-25 22:40:08 +01:00
parent 370b5293ea
commit b241c5f0d7

View file

@ -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