fix obj_still_exists
This commit is contained in:
parent
5e14d11a46
commit
b69608056c
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ def group_changes(changeset, can_edit=False, show_history=False):
|
||||||
obj_desc = _('%s (created)') % obj_desc
|
obj_desc = _('%s (created)') % obj_desc
|
||||||
obj_still_exists = int(pk[1:]) in changeset.created_objects[obj.__class__]
|
obj_still_exists = int(pk[1:]) in changeset.created_objects[obj.__class__]
|
||||||
else:
|
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
|
edit_url = None
|
||||||
if obj_still_exists and can_edit:
|
if obj_still_exists and can_edit:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue