From 8a7453ce0ef426a11eab0cd5d8592e56b5b82572 Mon Sep 17 00:00:00 2001 From: Elia Bieri Date: Thu, 8 Jun 2023 14:18:21 +0200 Subject: [PATCH] Soft delete notifications --- server/vbv_lernwelt/core/management/commands/cypress_reset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/vbv_lernwelt/core/management/commands/cypress_reset.py b/server/vbv_lernwelt/core/management/commands/cypress_reset.py index 9d1ad15d..1c6507ad 100644 --- a/server/vbv_lernwelt/core/management/commands/cypress_reset.py +++ b/server/vbv_lernwelt/core/management/commands/cypress_reset.py @@ -22,7 +22,7 @@ from vbv_lernwelt.notify.models import Notification def command(create_completion): print("cypress reset data") CourseCompletion.objects.all().delete() - Notification.objects.all().delete() + Notification.objects.all().mark_all_as_deleted() AssignmentCompletion.objects.all().delete() User.objects.all().update(language="de") User.objects.all().update(additional_json_data={})