X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d713c61258bf1fcebea7e21065ac2878f5bf45be..51d450b5b3346e2b2418702c90449a0a87daaba9:/apps/reporting/views.py?ds=sidebyside diff --git a/apps/reporting/views.py b/apps/reporting/views.py index 961a682a1..a23252ec2 100644 --- a/apps/reporting/views.py +++ b/apps/reporting/views.py @@ -30,6 +30,9 @@ def stats_page(request): 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))