don't store created pks as int
This commit is contained in:
parent
c6ed3105b0
commit
f1854c8b66
4 changed files with 21 additions and 26 deletions
|
@ -85,7 +85,7 @@ def group_changes(changeset, can_edit=False, show_history=False):
|
|||
if is_created_pk(pk):
|
||||
if show_history:
|
||||
obj_desc = _('%s (created)') % obj_desc
|
||||
obj_still_exists = int(pk[1:]) in changeset.created_objects[obj.__class__]
|
||||
obj_still_exists = pk in changeset.created_objects[obj.__class__]
|
||||
else:
|
||||
obj_still_exists = pk not in changeset.deleted_existing.get(obj.__class__, ())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue