summaryrefslogtreecommitdiff
path: root/app/essays/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/essays/models.py')
-rw-r--r--app/essays/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/essays/models.py b/app/essays/models.py
index 5a29667..c75f72d 100644
--- a/app/essays/models.py
+++ b/app/essays/models.py
@@ -25,6 +25,7 @@ class Essay(models.Model):
sub_title = models.CharField(max_length=200, blank=True)
dek = models.TextField(blank=True)
preamble = models.TextField(blank=True)
+ preamble_html = models.TextField(blank=True)
slug = models.SlugField(unique_for_date='pub_date')
body_html = models.TextField(blank=True)
body_markdown = models.TextField()
@@ -74,6 +75,7 @@ class Essay(models.Model):
md = render_images(self.body_markdown)
self.body_html = markdown_to_html(md)
self.afterword_html = markdown_to_html(self.afterword)
+ self.preamble_html = markdown_to_html(self.preamble)
super(Essay, self).save()