X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8952b9530d943655e552ea660c47e850123c5105..5ac6f14db010bbfbcf39190d0b639a47ab1c89d3:/src/catalogue/urls.py diff --git a/src/catalogue/urls.py b/src/catalogue/urls.py index 27fddc2f0..7f1eddbae 100644 --- a/src/catalogue/urls.py +++ b/src/catalogue/urls.py @@ -8,6 +8,7 @@ from catalogue.feeds import AudiobookFeed from catalogue.models import Book from catalogue import views import picture.views +import search.views urlpatterns = [ @@ -36,8 +37,9 @@ urlpatterns = [ path('lektury//', views.collection, name='collection'), path('audiobooki/', views.audiobooks, name='audiobook_list'), 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).order_by('-created_at'), + queryset=Book.objects.filter(parent=None, findable=True).order_by('-created_at'), 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'),