fix editor crashes when location redirects were edited

This commit is contained in:
Laura Klünder 2018-12-08 23:16:04 +01:00
parent 376709588e
commit fdc2b19f4f

View file

@ -343,8 +343,8 @@ class ChangeSet(models.Model):
except FieldDoesNotExist:
# todo: fix this
continue
objects.setdefault(LocationSlug, {})[target.pk] = target._obj
objects.setdefault(target.__class__, {})[target.pk] = target._obj
objects.setdefault(LocationSlug, {})[target.pk] = target
objects.setdefault(target.__class__, {})[target.pk] = target
return objects