don't store created pks as int

This commit is contained in:
Laura Klünder 2017-06-22 22:47:22 +02:00
parent c6ed3105b0
commit f1854c8b66
4 changed files with 21 additions and 26 deletions

View file

@ -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__, ())