diff options
Diffstat (limited to 'app/resume/models.py')
-rw-r--r-- | app/resume/models.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/resume/models.py b/app/resume/models.py index aec1a2e..a8c9809 100644 --- a/app/resume/models.py +++ b/app/resume/models.py @@ -1,9 +1,7 @@ from django.db import models from django.core.urlresolvers import reverse -# http://freewisdom.org/projects/python-markdown/ -import markdown - +from utils.widgets import markdown_to_html class Publisher(models.Model): name = models.CharField(max_length=200) @@ -37,5 +35,5 @@ class PubItem(models.Model): def save(self, *args, **kwargs): if self.body_markdown: - self.body_html = markdown.markdown(self.body_markdown, extensions=['extra'], safe_mode=False) + self.body_html = markdown_to_html(self.body_markdown) super(PubItem, self).save() |