summaryrefslogtreecommitdiff
path: root/app/resume/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-01-07 11:09:46 -0500
committerluxagraf <sng@luxagraf.net>2016-01-07 11:09:46 -0500
commit12adad15009c2c56f3612a4afd3c4a2512cb303f (patch)
treeca96e6191c007d55c98a491e10c4c2589a030639 /app/resume/models.py
parent2d5330c638f2413610b09f2b853a6e5320d103d9 (diff)
added a little intro to each resume pub section explaining why I don't
have all the links to every story
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)