X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/beb5154606f790915bc56b9cb8af824537cc7d7a..67c985af477f2a622a5c3ce81afd7cb424326871:/src/social/urls.py

diff --git a/src/social/urls.py b/src/social/urls.py
index 395e54ac1..dc34fb62a 100644
--- a/src/social/urls.py
+++ b/src/social/urls.py
@@ -1,20 +1,18 @@
-# -*- coding: utf-8 -*-
 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
-from django.conf.urls import url
+from django.urls import path
 from django.views.decorators.cache import never_cache
 from . import views
 
 
 urlpatterns = [
-    url(r'^lektura/(?P<slug>[a-z0-9-]+)/lubie/$', views.like_book, name='social_like_book'),
-    url(r'^lektura/(?P<slug>[a-z0-9-]+)/nie_lubie/$', views.unlike_book, name='social_unlike_book'),
-    url(r'^lektura/(?P<slug>[a-z0-9-]+)/polki/$', never_cache(views.ObjectSetsFormView()), name='social_book_sets'),
-    url(r'^polka/$', views.my_shelf, name='social_my_shelf'),
-
-    # Includes
-    url(r'^cite/(?P<pk>\d+)\.(?P<lang>.+)\.html$', views.cite, name='social_cite'),
-    url(r'^cite_main/(?P<pk>\d+)\.(?P<lang>.+)\.html$', views.cite, {'main': True}, name='social_cite_main'),
-    url(r'^cite_info/(?P<pk>\d+).html$', views.cite_info, name='social_cite_info'),
+    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),
 ]