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.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/sketches/models.py b/app/sketches/models.py
index 9a3a8af..702b490 100644
--- a/app/sketches/models.py
+++ b/app/sketches/models.py
@@ -6,10 +6,8 @@ from django import forms
from locations.models import Location
from django.urls import reverse
-from utils.widgets import markdown_to_html
+from utils.util import render_images, parse_image
from locations.models import CheckIn
-from utils.widgets import parse_image, parse_video
-
def render_images(s):
s = re.sub('<img(.*)/>', parse_image, s)
@@ -88,4 +86,3 @@ class Sketch(models.Model):
self.pub_date= timezone.now()
self.date_last_updated = timezone.now()
super(Sketch, self).save()
-