upgrade
[wolnelektury.git] / src / catalogue / api / urls.py
index 2e5a9be..4e0d937 100644 (file)
@@ -21,16 +21,16 @@ urlpatterns = [
 
     re_path(tags_re + r'books/' + paginate_re,
             piwik_track_view(views.BookList.as_view()),
 
     re_path(tags_re + r'books/' + paginate_re,
             piwik_track_view(views.BookList.as_view()),
-            name='catalogue_api_book_list'),
+            {"filename": "books"}, name='catalogue_api_book_list'),
     re_path(tags_re + r'parent_books/' + paginate_re,
             piwik_track_view(views.BookList.as_view()),
     re_path(tags_re + r'parent_books/' + paginate_re,
             piwik_track_view(views.BookList.as_view()),
-            {"top_level": True}, name='catalogue_api_parent_book_list'),
+            {"filename": "parent_books", "top_level": True}, name='catalogue_api_parent_book_list'),
     re_path(tags_re + r'audiobooks/' + paginate_re,
             piwik_track_view(views.BookList.as_view()),
     re_path(tags_re + r'audiobooks/' + paginate_re,
             piwik_track_view(views.BookList.as_view()),
-            {"audiobooks": True}, name='catalogue_api_audiobook_list'),
+            {"filename": "audiobooks", "audiobooks": True}, name='catalogue_api_audiobook_list'),
     re_path(tags_re + r'daisy/' + paginate_re,
             piwik_track_view(views.BookList.as_view()),
     re_path(tags_re + r'daisy/' + paginate_re,
             piwik_track_view(views.BookList.as_view()),
-            {"daisy": True}, name='catalogue_api_daisy_list'),
+            {"filename": "daisy", "daisy": True}, name='catalogue_api_daisy_list'),
     re_path(r'^recommended/' + paginate_re,
             piwik_track_view(views.BookList.as_view()),
             {"recommended": True}, name='catalogue_api_recommended_list'),
     re_path(r'^recommended/' + paginate_re,
             piwik_track_view(views.BookList.as_view()),
             {"recommended": True}, name='catalogue_api_recommended_list'),