X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/18aa8ca52202003e5628a882f3469a04d905cc05..ca8f4e8fef80cb603117ed579da8554f503698e5:/src/reporting/views.py diff --git a/src/reporting/views.py b/src/reporting/views.py index fca453420..553371efe 100644 --- a/src/reporting/views.py +++ b/src/reporting/views.py @@ -8,7 +8,7 @@ from django.contrib.admin.views.decorators import staff_member_required from django.db.models import Count from django.shortcuts import render -from catalogue.models import Book, BookMedia +from catalogue.models import Book, BookMedia, Tag from reporting.utils import render_to_pdf, render_to_csv, generated_file_view @@ -60,10 +60,13 @@ def stats_page(request): ] etags.append(d) + unused_tags = Tag.objects.exclude(category='set').filter(items=None, book=None) + return render(request, 'reporting/main.html', { 'media_types': media_types, 'licenses': licenses, 'etags': etags, + 'unused_tags': unused_tags, })