From 64bbd40884ca849c8929ffd1b83f0c628c899628 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 28 Feb 2012 13:08:06 -0800 Subject: [PATCH] No, really. Now it works with standard emails. --- djrill/mail/backends/djrill.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/djrill/mail/backends/djrill.py b/djrill/mail/backends/djrill.py index f9acbe5..1d05de6 100644 --- a/djrill/mail/backends/djrill.py +++ b/djrill/mail/backends/djrill.py @@ -78,8 +78,10 @@ class DjrillBackend(BaseEmailBackend): self.msg_dict = self._build_standard_message_dict(message) - if message.alternative_subtype == "mandrill" and message.alternatives: - self._add_alternatives(message) + if getattr(message, "alternative_subtype", None): + if message.alternative_subtype == "mandrill": + if message.alternatives: + self._add_alternatives(message) djrill_it = requests.post(self.api_action, data=json.dumps({ "key": self.api_key,