From 719efb1334a21a58f2c667a98f6bc4b151b32132 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 4 Jan 2017 14:27:18 -0500 Subject: changed function to handle old image --- app/jrnl/models.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'app/jrnl/models.py') 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() -- cgit v1.2.3-70-g09d2