From: Radek Czajka Date: Mon, 15 Jul 2013 10:17:54 +0000 (+0200) Subject: Fix funding notify mail. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/91296ca8836e12620c8df5363d115e7d1b91bf48 Fix funding notify mail. --- 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),