From 91296ca8836e12620c8df5363d115e7d1b91bf48 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 15 Jul 2013 12:17:54 +0200 Subject: [PATCH] Fix funding notify mail. --- apps/funding/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/funding/models.py b/apps/funding/models.py index 3b42ea63d..b853181f1 100644 --- a/apps/funding/models.py +++ b/apps/funding/models.py @@ -252,7 +252,8 @@ class Funding(models.Model): 'funding': self, 'site': Site.objects.get_current(), } - context.update(extra_context) + if extra_context: + context.update(extra_context) with override(self.language_code or app_settings.DEFAULT_LANGUAGE): send_mail(subject, render_to_string(template_name, context), -- 2.20.1