summaryrefslogtreecommitdiff
path: root/app/resume/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/resume/models.py')
-rw-r--r--app/resume/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/resume/models.py b/app/resume/models.py
index 95c66f7..38f041a 100644
--- a/app/resume/models.py
+++ b/app/resume/models.py
@@ -19,6 +19,11 @@ class Publisher(models.Model):
def __str__(self):
return self.name
+ def save(self, *args, **kwargs):
+ if self.body_markdown:
+ self.body_html = markdown_to_html(self.body_markdown)
+ super(Publisher, self).save()
+
class PubItem(models.Model):
title = models.CharField(max_length=200)