Fix funding notify mail.
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 15 Jul 2013 10:17:54 +0000 (12:17 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 15 Jul 2013 10:17:54 +0000 (12:17 +0200)
apps/funding/models.py

index 3b42ea6..b853181 100644 (file)
@@ -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),