temporary fix for error 500
This commit is contained in:
parent
38edfe4216
commit
ea32785ca8
1 changed files with 5 additions and 1 deletions
|
@ -336,7 +336,11 @@ class ChangeSet(models.Model):
|
|||
objects.setdefault(obj.__class__, {})[pk] = obj
|
||||
|
||||
for pk, obj in objects.get(LocationRedirect, {}).items():
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue