From 69a8baa1be1296e39a2596731209a2408770c123 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 4 Dec 2020 15:28:25 -0500 Subject: fixed a bug in fetching image previews for featured image --- app/media/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/media/views.py') 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) -- cgit v1.2.3-70-g09d2