From 809a32307f80def1dfa6d18881d6ce3515a35bb6 Mon Sep 17 00:00:00 2001 From: Anna Makarudze Date: Sun, 16 Jun 2024 22:32:33 +0200 Subject: [PATCH] Fix keyerror for page_title in confirmation email --- applications/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/forms.py b/applications/forms.py index 4ce074d5..aacf5ec1 100644 --- a/applications/forms.py +++ b/applications/forms.py @@ -77,9 +77,9 @@ def save(self, *args, **kwargs): if application.email: # Send confirmation email - subject = _("Confirmation of your application for %(page_title)s") % { - "page_title": self.form.event.page_title - } + page_title = self.form.event.page_title + subject = _("Confirmation of your application for %(page_title)s") % {"page_title": page_title} + body = render_to_string( "emails/application_confirmation.html", {