X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4157358510703a54cde8f3b0f9814f2cd1c9f40a..8f031335a8a0dabceec381b89eb0cbbcb2f4b637:/src/catalogue/urls.py?ds=sidebyside diff --git a/src/catalogue/urls.py b/src/catalogue/urls.py index 3cb17502b..7049b1c85 100644 --- a/src/catalogue/urls.py +++ b/src/catalogue/urls.py @@ -39,13 +39,13 @@ urlpatterns = [ path('daisy/', views.daisy_list, name='daisy_list'), path('jtags/', search.views.hint, {'param': 'q', 'mozhint': True}, name='jhint'), path('nowe/', ListView.as_view( - queryset=Book.objects.filter(parent=None, findable=True).order_by('-created_at'), + queryset=Book.objects.filter(parent=None, findable=True).order_by('-created_at')[:100], template_name='catalogue/recent_list.html'), name='recent_list'), path('nowe/audiobooki/', ListView.as_view( - queryset=Book.objects.filter(media__type='ogg').annotate(m=Max('media__uploaded_at')).order_by('-m'), + queryset=Book.objects.filter(media__type='ogg').annotate(m=Max('media__uploaded_at')).order_by('-m')[:100], template_name='catalogue/recent_audiobooks_list.html'), name='recent_audiobooks_list'), path('nowe/daisy/', ListView.as_view( - queryset=Book.objects.filter(media__type='daisy').annotate(m=Max('media__uploaded_at')).order_by('-m'), + queryset=Book.objects.filter(media__type='daisy').annotate(m=Max('media__uploaded_at')).order_by('-m')[:100], template_name='catalogue/recent_daisy_list.html'), name='recent_daisy_list'), path('custompdf//', views.CustomPDFFormView(), name='custom_pdf_form'),