From 12adad15009c2c56f3612a4afd3c4a2512cb303f Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 7 Jan 2016 11:09:46 -0500 Subject: added a little intro to each resume pub section explaining why I don't have all the links to every story --- app/resume/models.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/resume/models.py') 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) -- cgit v1.2.3-70-g09d2