summaryrefslogtreecommitdiff
path: root/app/media/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-12-04 15:28:25 -0500
committerluxagraf <sng@luxagraf.net>2020-12-04 15:28:25 -0500
commit69a8baa1be1296e39a2596731209a2408770c123 (patch)
treeb98d3bc2889793aeabd45a0f381aff9c8bd6ee6f /app/media/views.py
parent3c41fd7b519137c091b3a5a6f42a6a55cac31f94 (diff)
fixed a bug in fetching image previews for featured image
Diffstat (limited to 'app/media/views.py')
-rw-r--r--app/media/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/media/views.py b/app/media/views.py
index 29d3eca..04ac11c 100644
--- a/app/media/views.py
+++ b/app/media/views.py
@@ -103,7 +103,7 @@ def photo_preview_json(request, pk):
def thumb_preview_json(request, pk):
p = LuxImage.objects.get(pk=pk)
data = {}
- data['url'] = p.get_image_url_by_size('admin_insert')
+ data['url'] = p.get_image_url_by_size('tn')
data = json.dumps(data)
return HttpResponse(data)