Skip to content

Commit

Permalink
Fix keyerror for page_title in confirmation email
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Jun 16, 2024
1 parent 14c1ebd commit 809a323
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions applications/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
{
Expand Down

0 comments on commit 809a323

Please sign in to comment.