summaryrefslogtreecommitdiff
path: root/app/jrnl/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2017-01-04 14:27:18 -0500
committerluxagraf <sng@luxagraf.net>2017-01-04 14:27:18 -0500
commit719efb1334a21a58f2c667a98f6bc4b151b32132 (patch)
tree175cc38480aa792484d99b512715336a97682d93 /app/jrnl/models.py
parent136bf4e2c77346b9507a4f98c9a361d33e2fd06c (diff)
changed function to handle old image
Diffstat (limited to 'app/jrnl/models.py')
-rw-r--r--app/jrnl/models.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/jrnl/models.py b/app/jrnl/models.py
index 6d55d2e..7332321 100644
--- a/app/jrnl/models.py
+++ b/app/jrnl/models.py
@@ -170,12 +170,8 @@ class Entry(models.Model):
def save(self):
if self.pk:
- if (self.pk >= 163 and self.pk != 166) or self.pk == 129:
- md = render_images(self.body_markdown)
- self.body_html = markdown_to_html(md)
- else:
- md = image_url_replace(self.body_markdown)
- self.body_html = markdown.markdown(md, extensions=['extra'], safe_mode=False)
+ md = render_images(self.body_markdown)
+ self.body_html = markdown_to_html(md)
self.has_video = parse_video(self.body_html)
try:
self.location = Location.objects.filter(geometry__contains=self.point).get()