From 6a7b3f19e9641a28944459afd7d420e9ee09cc4a Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 14 Dec 2024 09:31:46 +0100 Subject: [PATCH] feat: Link Adoption Notice on notification --- src/fellchensammlung/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 85ffee4..f3b3346 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -368,8 +368,8 @@ class AdoptionNotice(models.Model): self.adoptionnoticestatus.set_unchecked() for subscription in self.get_subscriptions(): - notification_title = _("Vermittlung deaktiviert:") + f" {self}" - text = _("Die folgende Vermittlung wurde deaktiviert: ") + f"{self.name}, {self.get_absolute_url()}" + notification_title = _("Vermittlung deaktiviert:") + f" {self.name}" + text = _("Die folgende Vermittlung wurde deaktiviert: ") + f"[{self.name}]({self.get_absolute_url()})" BaseNotification.objects.create(user=subscription.owner, text=text, title=notification_title)