only show (created) in history view
This commit is contained in:
parent
d0b61563f5
commit
223a0e57df
1 changed files with 2 additions and 1 deletions
|
@ -114,6 +114,7 @@ def group_changes(changeset, can_edit=False, show_history=False):
|
||||||
changes = []
|
changes = []
|
||||||
obj_desc = _('%(model)s #%(id)s') % {'model': obj.__class__._meta.verbose_name, 'id': pk}
|
obj_desc = _('%(model)s #%(id)s') % {'model': obj.__class__._meta.verbose_name, 'id': pk}
|
||||||
if is_created_pk(pk):
|
if is_created_pk(pk):
|
||||||
|
if show_history:
|
||||||
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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue