From 364a6f32f4ed6301d190aff501d9da58686c58f9 Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 31 Dec 2024 11:35:29 +0100 Subject: [PATCH] refactor: Typo --- src/fellchensammlung/models.py | 2 +- src/fellchensammlung/tools/admin.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index d6bd95c..8c032b4 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -790,7 +790,7 @@ class CommentNotification(BaseNotification): return self.comment.get_absolute_url -class AndoptionNoticeNotification(BaseNotification): +class AdoptionNoticeNotification(BaseNotification): adoption_notice = models.ForeignKey(AdoptionNotice, on_delete=models.CASCADE, verbose_name=_('Vermittlung')) @property diff --git a/src/fellchensammlung/tools/admin.py b/src/fellchensammlung/tools/admin.py index 47b329e..c6301a9 100644 --- a/src/fellchensammlung/tools/admin.py +++ b/src/fellchensammlung/tools/admin.py @@ -4,7 +4,7 @@ from django.utils import timezone from datetime import timedelta from fellchensammlung.models import AdoptionNotice, Location, RescueOrganization, AdoptionNoticeStatus, Log, \ - AndoptionNoticeNotification + AdoptionNoticeNotification from fellchensammlung.tools.misc import is_404 @@ -86,7 +86,7 @@ def deactivate_404_adoption_notices(): deactivation_message = f'Die Vermittlung [{adoption_notice.name}]({adoption_notice.get_absolute_url()}) wurde automatisch deaktiviert, da die Website unter "Mehr Informationen" nicht mehr online ist.' for subscription in adoption_notice.get_subscriptions(): - AndoptionNoticeNotification.objects.create(user=subscription.owner, + AdoptionNoticeNotification.objects.create(user=subscription.owner, title="Vermittlung deaktiviert", adoption_notice=adoption_notice, text=deactivation_message)