X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/131d04d7a357f3d1c7f77f8f4931a96caee04d53..251b72488d27f769ed0574f39a91f5d2da3d27a6:/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)