X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b95b09260db87f6665bfcef3fb4f7c19f8acb666..1b80c204be885588f7cbe95610e3677f2f886801:/src/social/urls.py?ds=sidebyside diff --git a/src/social/urls.py b/src/social/urls.py old mode 100755 new mode 100644 index 395e54ac1..e092ff0bf --- a/src/social/urls.py +++ b/src/social/urls.py @@ -1,20 +1,14 @@ -# -*- 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[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'), - - # Includes - url(r'^cite/(?P\d+)\.(?P.+)\.html$', views.cite, name='social_cite'), - url(r'^cite_main/(?P\d+)\.(?P.+)\.html$', views.cite, {'main': True}, name='social_cite_main'), - url(r'^cite_info/(?P\d+).html$', views.cite_info, name='social_cite_info'), + 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'), ]