X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/87bd94a94dc6cc3dbf47db2bdd17761b3f400138..91a20d3c82e0edcd883148b14df90b56a38ba2b2:/src/cover/views.py?ds=inline diff --git a/src/cover/views.py b/src/cover/views.py index 82bc911f..39b12f91 100644 --- a/src/cover/views.py +++ b/src/cover/views.py @@ -105,6 +105,11 @@ def image(request, pk): if not request.accepts('text/html') and request.accepts('application/json') or request.GET.get('format') == 'json': return JsonResponse({ + 'title': img.title, + 'author': img.author, + 'license_name': img.license_name, + 'license_url': img.license_url, + 'source_url': img.source_url, 'attribution': img.attribution, 'cut_left': img.cut_left, 'cut_right': img.cut_right,