Commits

Simon Meers committed abbd3dd

fix dictionary update

  • Participants
  • Parent commits 5e1c0e4

Comments (0)

Files changed (1)

File generic/utils/mail.py

 
         if self.template_name and not self.body:
             if self.use_context_processors:
-                self.context = RequestContext(self.request).update(self.context)
-            self.body = render_to_string(self.template_name, self.context)
+                context = RequestContext(self.request)
+                context.update(self.context)
+            else:
+                context = self.context
+            self.body = render_to_string(self.template_name, context)
 
     def send(self, fail_silently=False):
         if self.send_separately: