X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6d42bc478e3d1bd90eb294464748c21e4de0fc63..4bf7a487910abd0487983e85722d134aa9bb95fe:/src/social/api/urls.py?ds=inline

diff --git a/src/social/api/urls.py b/src/social/api/urls.py
index 2ed2d66d1..43036f63c 100644
--- a/src/social/api/urls.py
+++ b/src/social/api/urls.py
@@ -1,16 +1,16 @@
-# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
 #
-from django.conf.urls import include, url
+from django.urls import path
 from stats.utils import piwik_track_view
 from . import views
 
 
 urlpatterns = [
-    url(r'^like/(?P<slug>[a-z0-9-]+)/$',
+    path('like/<slug:slug>/',
         piwik_track_view(views.LikeView.as_view()),
         name='social_api_like'),
-    url(r'^shelf/(?P<state>[a-z]+)/$',
+    path('shelf/<slug:state>/',
         piwik_track_view(views.ShelfView.as_view()),
         name='social_api_shelf'),
 ]