- # Includes
- url(r'^cite/(?P<pk>\d+)\.(?P<lang>.+)\.html$', 'cite', name='social_cite'),
- url(r'^cite_main/(?P<pk>\d+)\.(?P<lang>.+)\.html$', 'cite', {'main': True}, name='social_cite_main'),
- url(r'^cite_info/(?P<pk>\d+).html$', 'cite_info', name='social_cite_info'),
-
- #~ url(r'^polki/(?P<shelf>[a-zA-Z0-9-]+)/formaty/$', 'shelf_book_formats', name='shelf_book_formats'),
- #~ url(r'^polki/(?P<shelf>[a-zA-Z0-9-]+)/(?P<slug>%s)/usun$' % SLUG, 'remove_from_shelf', name='remove_from_shelf'),
- #~ url(r'^polki/$', 'user_shelves', name='user_shelves'),
- #~ url(r'^polki/(?P<slug>[a-zA-Z0-9-]+)/usun/$', 'delete_shelf', name='delete_shelf'),
- #~ url(r'^polki/(?P<slug>[a-zA-Z0-9-]+)\.zip$', 'download_shelf', name='download_shelf'),
- #~ url(r'^polki/nowa/$', 'new_set', name='new_set'),
-)
+urlpatterns = [
+ path('lektura/<slug:slug>/lubie/', views.like_book, name='social_like_book'),
+ path('dodaj-tag/', views.AddSetView.as_view(), name='social_add_set_tag'),
+ path('usun-tag/', views.RemoveSetView.as_view(), name='social_remove_set_tag'),
+ path('moje-tagi/', views.my_tags, name='social_my_tags'),
+ path('lektura/<slug:slug>/nie_lubie/', views.unlike_book, name='social_unlike_book'),
+ path('lektura/<slug:slug>/polki/', never_cache(views.ObjectSetsFormView()), name='social_book_sets'),
+ path('polka/', views.my_shelf, name='social_my_shelf'),
+ path('ulubione/', views.my_liked),
+]