From 93aea70d293d454d85984a54f25a7ece2165aa9c Mon Sep 17 00:00:00 2001 From: dormantman Date: Mon, 30 Dec 2019 18:14:36 +0300 Subject: [PATCH] Added saving date --- apps/notification/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/notification/models.py b/apps/notification/models.py index fd386c2d..1f055f2e 100644 --- a/apps/notification/models.py +++ b/apps/notification/models.py @@ -119,6 +119,7 @@ class Subscriber(ProjectBaseMixin): old_subscribes_types = [sub for sub in old_subscribes if sub.id not in new_ids] old_subscribes = Subscribe.objects.filter(subscriber=self, subscription_types__in=old_subscribes_types) old_subscribes.update(unsubscribe_date=now()) + old_subscribes.save() self.save()