summaryrefslogtreecommitdiff
path: root/app/sketches/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/sketches/models.py')
-rw-r--r--app/sketches/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/sketches/models.py b/app/sketches/models.py
index 2d7f9ac..02fa766 100644
--- a/app/sketches/models.py
+++ b/app/sketches/models.py
@@ -7,9 +7,11 @@ from django.urls import reverse
from utils.widgets import markdown_to_html
from locations.models import CheckIn
-from jrnl.models import render_images
+def render_images(s):
+ s = re.sub('<img(.*)/>', parse_image, s)
+ return s
class Sketch(models.Model):
title = models.CharField(max_length=250, null=True, blank=True)