From: Radek Czajka Date: Fri, 18 Sep 2020 13:37:25 +0000 (+0200) Subject: Don't hide the recommended collections. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/0e5d704f09ed528815a097b6066acf4ebaea0f08 Don't hide the recommended collections. --- diff --git a/src/catalogue/views.py b/src/catalogue/views.py index ef2527b59..aeed403ab 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -449,7 +449,7 @@ def tag_catalogue(request, category): def collections(request): - objects = Collection.objects.filter(role='') + objects = Collection.objects.all() if len(objects) > 3: best = random.sample(list(objects), 3)