X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6d42bc478e3d1bd90eb294464748c21e4de0fc63..55e6abd52da631d0a36ed13e12f5e1dfb2af0d92:/src/isbn/urls.py?ds=sidebyside

diff --git a/src/isbn/urls.py b/src/isbn/urls.py
index 2a977e530..cd84b6737 100644
--- a/src/isbn/urls.py
+++ b/src/isbn/urls.py
@@ -1,15 +1,15 @@
-# 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 url
+from django.urls import path
 from . import views
 
 urlpatterns = (
-    url(r'^dodaj/$', views.add_isbn_wl, name='add_isbn_wl'),
-    url(r'^potwierdzenie/$', views.confirm_isbn_wl, name='confirm_isbn_wl'),
-    url(r'^save-wl-onix/$', views.save_wl_onix, name='save_wl_onix'),
-    url(r'^tagi-isbn/(?P<slug>[a-z0-9-]*)/$', views.wl_dc_tags, name='wl_dc_tags'),
+    path('dodaj/', views.add_isbn_wl, name='add_isbn_wl'),
+    path('potwierdzenie/', views.confirm_isbn_wl, name='confirm_isbn_wl'),
+    path('save-wl-onix/', views.save_wl_onix, name='save_wl_onix'),
+    path('tagi-isbn/<slug:slug>/', views.wl_dc_tags, name='wl_dc_tags'),
 
-    url(r'^dodaj-fnp/$', views.add_isbn_fnp, name='add_isbn_fnp'),
-    url(r'^przypisane/(?P<slug>[a-z0-9-]*)/$', views.assigned_isbn, name='assigned_isbn'),
+    path('dodaj-fnp/', views.add_isbn_fnp, name='add_isbn_fnp'),
+    path('przypisane/<slug:slug>/', views.assigned_isbn, name='assigned_isbn'),
 )