temporary fix for error 500

This commit is contained in:
Laura Klünder 2017-12-24 13:33:59 +01:00
parent 38edfe4216
commit ea32785ca8

View file

@ -336,7 +336,11 @@ class ChangeSet(models.Model):
objects.setdefault(obj.__class__, {})[pk] = obj
for pk, obj in objects.get(LocationRedirect, {}).items():
target = obj.target.get_child(obj.target)
try:
target = obj.target.get_child(obj.target)
except FieldDoesNotExist:
# todo: fix this
continue
objects.setdefault(LocationSlug, {})[target.pk] = target
objects.setdefault(target.__class__, {})[target.pk] = target