summaryrefslogtreecommitdiff
path: root/app/resume
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-12-03 16:24:36 -0500
committerluxagraf <sng@luxagraf.net>2015-12-03 16:24:36 -0500
commite4a7f290d373427c36d7925e7381aadf16524936 (patch)
treef38fe76393ddac2d77f653a109ac360fa2fb75d1 /app/resume
parent657d719bfdc33c8b01a430ea3f58a4907c558f9d (diff)
switched over to using a single markdown processor from utils everywhere
except notes because I'm urlizing notes and I don't want to do that anywhere else.
Diffstat (limited to 'app/resume')
-rw-r--r--app/resume/models.py6
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()