X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ce463c2534ce26e07055092cce167fe5a510aa5a..0b83514c0335addda3b76710aec04df93f85479d:/src/catalogue/views.py diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 5beb6dc01..2c9f5dd11 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -512,7 +511,7 @@ def collections(request): objects = Collection.objects.all() if len(objects) > 3: - best = random.sample(objects, 3) + best = random.sample(list(objects), 3) else: best = objects