summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 5e23d469a..2a2b396d4 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -1854,6 +1854,10 @@ class DeletionWizard(Wizard):
def done(self, form_list, **kwargs):
obj = self.get_current_object()
if obj:
+ if hasattr(obj, "timestamp_label"):
+ # mark item for deletion with timestamp_label set to -1
+ obj.__class__.objects.filter(pk=obj.pk).update(
+ timestamp_label=-1)
try:
obj.delete()
except ObjectDoesNotExist: