diff options
author | luxagraf <sng@luxagraf.net> | 2020-12-04 15:28:25 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-12-04 15:28:25 -0500 |
commit | 69a8baa1be1296e39a2596731209a2408770c123 (patch) | |
tree | b98d3bc2889793aeabd45a0f381aff9c8bd6ee6f /app/media/views.py | |
parent | 3c41fd7b519137c091b3a5a6f42a6a55cac31f94 (diff) |
fixed a bug in fetching image previews for featured image
Diffstat (limited to 'app/media/views.py')
-rw-r--r-- | app/media/views.py | 2 |
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) |