summaryrefslogtreecommitdiff
path: root/app/sketches/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-07-07 20:41:09 -0400
committerluxagraf <sng@luxagraf.net>2018-07-07 20:41:09 -0400
commit6a2393e6819ea09aeb559354a69746750aa8cbdf (patch)
tree0ac9890740f9afcd9720ea9b550a3895d95ecb50 /app/sketches/models.py
parentfe13c3830c6b36fb8f78009a788650a992cb3070 (diff)
added campsite model, refactored some code to avoid circular imports,
reorganized some auxilary functions and fixed broken build JS.
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()
-