-# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
#
import os.path
from datetime import date
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
]
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,
})