- url(r'^lektury/$', views.literature, name='book_list'),
- url(r'^lektury/(?P<slug>[a-zA-Z0-9-]+)/$', views.collection, name='collection'),
- url(r'^audiobooki/$', views.audiobooks, name='audiobook_list'),
- url(r'^daisy/$', views.daisy_list, name='daisy_list'),
- url(r'^nowe/$', ListView.as_view(
- queryset=Book.objects.filter(parent=None).order_by('-created_at'),
+ path('lektury/', views.LiteratureView.as_view(), name='book_list'),
+ path('lektury/<slug:slug>/', views.collection, name='collection'),
+ path('audiobooki/', views.AudiobooksView.as_view(), 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, findable=True).order_by('-created_at')[:100],