- url(r'^lektury/$', 'book_list', name='book_list'),
- url(r'^lektury/(?P<slug>[a-zA-Z0-9-]+)/$', 'collection', name='collection'),
- url(r'^audiobooki/$', 'audiobook_list', name='audiobook_list'),
- url(r'^daisy/$', 'daisy_list', name='daisy_list'),
- url(r'^tags/$', 'tags_starting_with', name='hint'),
- url(r'^jtags/?$', 'json_tags_starting_with', name='jhint'),
- url(r'^nowe/$', ListView.as_view(
- queryset=Book.objects.filter(parent=None).order_by('-created_at'),
+ path('galeria/', views.GalleryView.as_view(), name='gallery'),
+ path('kolekcje/', views.collections, name='catalogue_collections'),
+
+ 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],