X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6d42bc478e3d1bd90eb294464748c21e4de0fc63..28e9178ad9b465e89c5a784c31f9201285440962:/src/newsletter/urls.py diff --git a/src/newsletter/urls.py b/src/newsletter/urls.py index c99b47a43..bfae579a4 100644 --- a/src/newsletter/urls.py +++ b/src/newsletter/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 . import views urlpatterns = [ - url(r'^zapisz-sie/$', views.subscribe_form, name='subscribe'), - url(r'^zapis/$', views.subscribed, name='subscribed'), - url(r'^potwierdzenie/(?P[0-9]+)/(?P[0-9a-f]+)/$', + path('zapisz-sie/', views.subscribe_form, name='subscribe'), + path('zapis/', views.subscribed, name='subscribed'), + path('potwierdzenie///', views.confirm_subscription, name='confirm_subscription'), - url(r'^wypisz-sie/$', views.unsubscribe_form, name='unsubscribe'), - url(r'^wypisano/$', views.unsubscribed, name='unsubscribed'), + path('wypisz-sie/', views.unsubscribe_form, name='unsubscribe'), + path('wypisano/', views.unsubscribed, name='unsubscribed'), ]