feat: Enhances email details for registration requests

Includes the supplied registration reason in the email
notification to provide more context for admin approval.
This commit is contained in:
Kumi 2024-12-01 12:37:48 +01:00
parent 173d709678
commit e1452a8a10
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -209,7 +209,7 @@ class CompleteRegistrationView(FormView):
send_mail( send_mail(
"New Registration Request", "New Registration Request",
f"Approve the new user {username}", f"Approve the new user {username}\n\nSupplied reason: {registration_reason}",
settings.DEFAULT_FROM_EMAIL, settings.DEFAULT_FROM_EMAIL,
[settings.ADMIN_EMAIL], [settings.ADMIN_EMAIL],
) )