Skip to content

Commit

Permalink
Invitation: fixed bug in mail rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanbasten-ns committed Jan 26, 2024
1 parent 2d536e1 commit f7e2aa9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nens_auth_client/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,7 @@ def send_email(self, request, context=None, send_email_options=None):
if context.get("service_email", None) is None:
context["service_email"] = r"[email protected]"

inv_lang = "en"
if send_email_options is not None:
inv_lang = send_email_options.get("invitation_language", "en")
inv_lang = context.get("invitation_language", "en")

if inv_lang == "en":
text = render_to_string("nens_auth_client/invitation.txt", context=context)
Expand Down

0 comments on commit f7e2aa9

Please sign in to comment.