fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweaking template
[wolnelektury.git]
/
apps
/
reporting
/
views.py
diff --git
a/apps/reporting/views.py
b/apps/reporting/views.py
index
961a682
..
a23252e
100644
(file)
--- a/
apps/reporting/views.py
+++ b/
apps/reporting/views.py
@@
-30,6
+30,9
@@
def stats_page(request):
else:
mt['deprecated'] = '-'
else:
mt['deprecated'] = '-'
+ licenses = set(((b.extra_info.get('license'), b.extra_info.get('license_description'))
+ for b in Book.objects.all().iterator() if b.extra_info.get('license')))
+
return render_to_response('reporting/main.html',
locals(), context_instance=RequestContext(request))
return render_to_response('reporting/main.html',
locals(), context_instance=RequestContext(request))