Revert "to_dict: Update rendered_content in the database after rendered."

This reverts commit 4e5a370bc43defb5083cac3df45c649cf2366abf.

(imported from commit 745b4a98d0e3f67acaa207ba53e9250060dcfe06)
This commit is contained in:
Tim Abbott
2013-03-21 10:30:23 -04:00
parent 4edf85e730
commit a8febf8fce

View File

@@ -265,11 +265,6 @@ class Message(models.Model):
rendered_content = bugdown.convert(self.content) rendered_content = bugdown.convert(self.content)
if rendered_content is None: if rendered_content is None:
rendered_content = '<p>[Humbug note: Sorry, we could not understand the formatting of your message]</p>' rendered_content = '<p>[Humbug note: Sorry, we could not understand the formatting of your message]</p>'
# Update the database cache of the rendered content
self.rendered_content = rendered_content
self.rendered_content_version = bugdown.version
self.save()
obj['content'] = rendered_content obj['content'] = rendered_content
obj['content_type'] = 'text/html' obj['content_type'] = 'text/html'
else: else: