diff options
Diffstat (limited to 'app/pages')
-rw-r--r-- | app/pages/models.py | 7 |
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): |