X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8952b9530d943655e552ea660c47e850123c5105..1c9e2865ce8c6ab51b2fa3e43d3661089e7b7eb8:/src/newsletter/urls.py diff --git a/src/newsletter/urls.py b/src/newsletter/urls.py index bfae579a4..2b0a6f159 100644 --- a/src/newsletter/urls.py +++ b/src/newsletter/urls.py @@ -2,13 +2,15 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.urls import path +from django.views.generic import RedirectView from . import views urlpatterns = [ path('zapisz-sie/', views.subscribe_form, name='subscribe'), + path('zapisz-sie//', views.subscribe_form, name='subscribe'), path('zapis/', views.subscribed, name='subscribed'), - path('potwierdzenie///', - views.confirm_subscription, name='confirm_subscription'), - path('wypisz-sie/', views.unsubscribe_form, name='unsubscribe'), - path('wypisano/', views.unsubscribed, name='unsubscribed'), + path('wypisz-sie/', RedirectView.as_view( + url='https://mailing.mdrn.pl/?p=unsubscribe', + permanent=False, + ), name='unsubscribe'), ]