From 6bce5f95b0b24d420a6ab0b52d0959b45e033396 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 3 Oct 2012 18:13:03 -0400 Subject: [PATCH] Fix the no-apply-markdown case. (imported from commit aeaa2cec9858ff028a58e7c0c8bf06f5d3200c8e) --- zephyr/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephyr/models.py b/zephyr/models.py index ca13e462fa..ed6201e42e 100644 --- a/zephyr/models.py +++ b/zephyr/models.py @@ -210,6 +210,8 @@ class Zephyr(models.Model): def to_dict(self, apply_markdown): if apply_markdown: content = md_engine.convert(self.content) + else: + content = self.content return {'id' : self.id, 'sender_email' : self.sender.user.email, 'sender_name' : self.sender.full_name,