fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reorganize depot models in preparation for more.
[redakcja.git]
/
src
/
cover
/
views.py
diff --git
a/src/cover/views.py
b/src/cover/views.py
index
82bc911
..
39b12f9
100644
(file)
--- 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({
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,
'attribution': img.attribution,
'cut_left': img.cut_left,
'cut_right': img.cut_right,