summaryrefslogtreecommitdiff
path: root/app/pages
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/pages
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/pages')
-rw-r--r--app/pages/models.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/pages/models.py b/app/pages/models.py
index dacb25f..707892c 100644
--- a/app/pages/models.py
+++ b/app/pages/models.py
@@ -2,12 +2,7 @@ import re
from django.db import models
from django.contrib.sitemaps import Sitemap
-from utils.widgets import markdown_to_html
-from utils.widgets import parse_image
-
-def render_images(s):
- s = re.sub('<img(.*)/>', parse_image, s)
- return s
+from utils.util import markdown_to_html, render_images
class Page(models.Model):