only show the undo button in history for deleting stuff

This commit is contained in:
Laura Klünder 2017-06-25 17:22:04 +02:00
parent d86b31d0e9
commit 9c006e076f

View file

@ -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,
})