summaryrefslogtreecommitdiff
path: root/app/blog
diff options
context:
space:
mode:
Diffstat (limited to 'app/blog')
-rw-r--r--app/blog/admin.py2
-rw-r--r--app/blog/widgets.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/blog/admin.py b/app/blog/admin.py
index c0d72d9..d756b18 100644
--- a/app/blog/admin.py
+++ b/app/blog/admin.py
@@ -4,7 +4,7 @@ from blog.models import Entry, PostImage, EntryAside
from blog.widgets import AdminImageWidget
from django.contrib.gis.admin import OSMGeoAdmin
from django.conf import settings
-from models import *
+from .models import *
diff --git a/app/blog/widgets.py b/app/blog/widgets.py
index e7d9da8..33b2d9a 100644
--- a/app/blog/widgets.py
+++ b/app/blog/widgets.py
@@ -7,7 +7,7 @@ import os
def thumbnail(image_path):
absolute_url = os.path.join(settings.IMAGES_URL, image_path[7:])
- print absolute_url
+ print(absolute_url)
return u'<img style="max-width: 400px" src="%s" alt="%s" />' % (absolute_url, image_path)
class AdminImageWidget(AdminFileWidget):