fix obj_still_exists

This commit is contained in:
Laura Klünder 2017-06-20 21:21:13 +02:00
parent 5e14d11a46
commit b69608056c

View file

@ -118,7 +118,7 @@ def group_changes(changeset, can_edit=False, show_history=False):
obj_desc = _('%s (created)') % obj_desc
obj_still_exists = int(pk[1:]) in changeset.created_objects[obj.__class__]
else:
obj_still_exists = pk not in changeset.deleted_existing[obj.__class__]
obj_still_exists = pk not in changeset.deleted_existing.get(obj.__class__, ())
edit_url = None
if obj_still_exists and can_edit: