X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/75957f735219259d3b4bc361f80ccd3d7b92a0e9..995ef714e1e7cdfdf77f537132a4ea1e20a90272:/src/social/urls.py?ds=sidebyside diff --git a/src/social/urls.py b/src/social/urls.py index 6b7895084..e092ff0bf 100644 --- a/src/social/urls.py +++ b/src/social/urls.py @@ -1,14 +1,14 @@ # 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[a-z0-9-]+)/lubie/$', views.like_book, name='social_like_book'), - url(r'^lektura/(?P[a-z0-9-]+)/nie_lubie/$', views.unlike_book, name='social_unlike_book'), - url(r'^lektura/(?P[a-z0-9-]+)/polki/$', never_cache(views.ObjectSetsFormView()), name='social_book_sets'), - url(r'^polka/$', views.my_shelf, name='social_my_shelf'), + path('lektura//lubie/', views.like_book, name='social_like_book'), + path('lektura//nie_lubie/', views.unlike_book, name='social_unlike_book'), + path('lektura//polki/', never_cache(views.ObjectSetsFormView()), name='social_book_sets'), + path('polka/', views.my_shelf, name='social_my_shelf'), ]