Fix the no-apply-markdown case.

(imported from commit aeaa2cec9858ff028a58e7c0c8bf06f5d3200c8e)
This commit is contained in:
Tim Abbott 2012-10-03 18:13:03 -04:00
parent 6784e8cbf4
commit 6bce5f95b0
1 changed files with 2 additions and 0 deletions

View File

@ -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,