From 125aaafc4767bc3335b695849d64c82795d5dfb3 Mon Sep 17 00:00:00 2001 From: vincent porte Date: Mon, 27 Jan 2025 17:59:09 +0100 Subject: [PATCH] wip, waiting for #891 merge --- lacommunaute/notification/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lacommunaute/notification/models.py b/lacommunaute/notification/models.py index 5b65d42ef..caaa0048d 100644 --- a/lacommunaute/notification/models.py +++ b/lacommunaute/notification/models.py @@ -79,3 +79,9 @@ def sent(self): return self.sent_at is not None objects = NotificationQuerySet().as_manager() + + # TODO: vincentporte, en attente de la PR#891 + # def update(self, *args, **kwargs): + # super().update(*args, **kwargs) + # if visited_at: + # EmailLastSeen.objects.seen(self.recipient, EmailLastSeenKind.NOTIFICATION)