only show the undo button in history for deleting stuff
This commit is contained in:
parent
d86b31d0e9
commit
9c006e076f
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ def group_changes(changeset, can_edit=False, show_history=False):
|
|||
change_data.update({
|
||||
'created': _('created at %(datetime)s') % {'datetime': date_format(change.created, 'DATETIME_FORMAT')},
|
||||
})
|
||||
else:
|
||||
if not show_history or change.action == 'delete':
|
||||
change_data.update({
|
||||
'can_restore': change.can_restore,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue