summaryrefslogtreecommitdiff
path: root/app/sketches
diff options
context:
space:
mode:
Diffstat (limited to 'app/sketches')
-rw-r--r--app/sketches/migrations/0002_auto_20180208_0743.py17
-rw-r--r--app/sketches/models.py4
2 files changed, 20 insertions, 1 deletions
diff --git a/app/sketches/migrations/0002_auto_20180208_0743.py b/app/sketches/migrations/0002_auto_20180208_0743.py
new file mode 100644
index 0000000..664fcbc
--- /dev/null
+++ b/app/sketches/migrations/0002_auto_20180208_0743.py
@@ -0,0 +1,17 @@
+# Generated by Django 2.0.1 on 2018-02-08 07:43
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('sketches', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='sketch',
+ options={'get_latest_by': 'pub_date', 'ordering': ('-pub_date',), 'verbose_name_plural': 'sketches'},
+ ),
+ ]
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)