X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ecf6c60ce9eb3a07f3b0dd1403f7c69db135fcc9..90315d2db7b57aacd8bccc247fe06c61b0070780:/src/catalogue/views.py diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 398c61cc4..904cdc531 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -36,7 +36,7 @@ def catalogue(request): return render(request, 'catalogue/catalogue.html', { 'books': Book.objects.filter(findable=True, parent=None), 'pictures': Picture.objects.all(), - 'collections': Collection.objects.all(), + 'collections': Collection.objects.filter(listed=True), 'active_menu_item': 'all_works', }) @@ -452,7 +452,7 @@ def tag_catalogue(request, category): def collections(request): - objects = Collection.objects.all() + objects = Collection.objects.filter(listed=True) if len(objects) > 3: best = random.sample(list(objects), 3)