feat: Create notifications for 404 deactivation

This commit is contained in:
2024-12-14 09:31:06 +01:00
parent e858f61b3f
commit ec9f5b305c
3 changed files with 41 additions and 1 deletions

View File

@@ -753,6 +753,12 @@ class CommentNotification(BaseNotification):
def url(self):
return self.comment.get_absolute_url
class AndoptionNoticeNotification(BaseNotification):
adoption_notice = models.ForeignKey(AdoptionNotice, on_delete=models.CASCADE, verbose_name=_('Vermittlung'))
@property
def url(self):
return self.adoption_notice.get_absolute_url
class Subscriptions(models.Model):
owner = models.ForeignKey(User, on_delete=models.CASCADE, verbose_name=_('Nutzer*in'))