diff --git a/taiga/projects/attachments/api.py b/taiga/projects/attachments/api.py index 27f7ebe1..986c8f19 100644 --- a/taiga/projects/attachments/api.py +++ b/taiga/projects/attachments/api.py @@ -74,7 +74,7 @@ class BaseAttachmentViewSet(HistoryResourceMixin, WatchedResourceMixin, # NOTE: When destroy an attachment, the content_object change # after and not before self.persist_history_snapshot(obj, delete=True) - super().pre_delete(obj) + super().post_delete(obj) def get_object_for_snapshot(self, obj): return obj.content_object diff --git a/taiga/projects/history/mixins.py b/taiga/projects/history/mixins.py index 0a70366d..14a0f44d 100644 --- a/taiga/projects/history/mixins.py +++ b/taiga/projects/history/mixins.py @@ -62,7 +62,7 @@ class HistoryResourceMixin(object): obj = self.get_object() sobj = self.get_object_for_snapshot(obj) - if sobj != obj and delete: + if sobj != obj: delete = False notifications_services.analize_object_for_watchers(obj, comment, user)