From b4f52c7876501c554e40035ee00dd94ae8bf1559 Mon Sep 17 00:00:00 2001 From: moanos Date: Fri, 22 Nov 2024 07:15:50 +0100 Subject: [PATCH] fix: Save last checked correctly --- src/fellchensammlung/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 542ba2e..a53e2e0 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -351,18 +351,21 @@ class AdoptionNotice(models.Model): def set_closed(self): self.last_checked = timezone.now() self.adoptionnoticestatus.set_closed() + self.save() def set_active(self): self.last_checked = timezone.now() if not hasattr(self, 'adoptionnoticestatus'): AdoptionNoticeStatus.create_other(self) self.adoptionnoticestatus.set_active() + self.save() def set_unchecked(self): self.last_checked = timezone.now() if not hasattr(self, 'adoptionnoticestatus'): AdoptionNoticeStatus.create_other(self) self.adoptionnoticestatus.set_unchecked() + self.save() class AdoptionNoticeStatus(models.Model):