From 9858dfc1bde727d22c07ab44d447d9dcebf17c34 Mon Sep 17 00:00:00 2001 From: moanos Date: Fri, 11 Jul 2025 18:34:30 +0200 Subject: [PATCH] fix: search notification --- src/fellchensammlung/mail.py | 2 +- .../mail/notifications/an-for-search-found.html | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fellchensammlung/mail.py b/src/fellchensammlung/mail.py index 211844a..2421787 100644 --- a/src/fellchensammlung/mail.py +++ b/src/fellchensammlung/mail.py @@ -48,7 +48,7 @@ def send_notification_email(notification_pk): elif notification.notification_type == NotificationTypeChoices.AN_WAS_DEACTIVATED: html_message = render_to_string('fellchensammlung/mail/notifications/an-deactivated.html', context) elif notification.notification_type == NotificationTypeChoices.AN_FOR_SEARCH_FOUND: - html_message = render_to_string('fellchensammlung/mail/notifications/report.html', context) + html_message = render_to_string('fellchensammlung/mail/notifications/an-for-search-found.html', context) elif notification.notification_type == NotificationTypeChoices.NEW_COMMENT: html_message = render_to_string('fellchensammlung/mail/notifications/new-comment.html', context) else: diff --git a/src/fellchensammlung/templates/fellchensammlung/mail/notifications/an-for-search-found.html b/src/fellchensammlung/templates/fellchensammlung/mail/notifications/an-for-search-found.html index 05517f4..fdd2850 100644 --- a/src/fellchensammlung/templates/fellchensammlung/mail/notifications/an-for-search-found.html +++ b/src/fellchensammlung/templates/fellchensammlung/mail/notifications/an-for-search-found.html @@ -8,9 +8,8 @@

Moin,

es wurde eine neue Vermittlung gefunden die deinen Kriterien entspricht: {{ notification.adoption_notice }} -

- {% translate 'Vermittlung anzeigen' %} + {% translate 'Vermittlung anzeigen' %}

{% endblock %} \ No newline at end of file