fix: fucking wired bug where the url is not displayed in plaintext

that how an e-mail looked before:
Moin,

es wurde ein neuer Useraccount erstellt.

[admin] sgsfg (2025-07-12 09:44:27.251212+00:00)
Related:

http://localhost:8000/user/9/
User anzeigen:

---
This commit is contained in:
2025-07-12 11:46:47 +02:00
parent c1a7d6790b
commit 1ea04e98e8
2 changed files with 3 additions and 5 deletions

View File

@@ -44,6 +44,8 @@ def send_notification_email(notification_pk):
plain_message = render_to_string('fellchensammlung/mail/notifications/report.txt', context)
elif notification.notification_type == NotificationTypeChoices.NEW_USER:
html_message = render_to_string('fellchensammlung/mail/notifications/new-user.html', context)
new_user_url = notification.user_related.get_full_url()
context["new_user_url"] = new_user_url
plain_message = render_to_string('fellchensammlung/mail/notifications/new-user.txt', context)
elif notification.notification_type == NotificationTypeChoices.AN_IS_TO_BE_CHECKED:
html_message = render_to_string('fellchensammlung/mail/notifications/an-to-be-checked.html', context)

View File

@@ -4,9 +4,5 @@
es wurde ein neuer Useraccount erstellt.
{{ notification }}
Related: {{ notification.user_related }}
{{ notification.user_related.get_full_url }}
User anzeigen: {{ notification.user_related.get_full_url }}
User anzeigen: {{ new_user_url }}
{% endblocktranslate %}{% endblock %}