PZ: prevent generationg orders for cancelled debits.
[wolnelektury.git] / src / newsletter / urls.py
index 290bb87..2b0a6f1 100644 (file)
@@ -2,14 +2,15 @@
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
 from django.urls import path
 # 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'),
 from . import views
 
 urlpatterns = [
     path('zapisz-sie/', views.subscribe_form, name='subscribe'),
-    path('zapisz-sie/konkurs/', views.subscribe_form, {"title": "Zapisz się na newsletter Konkursu", "mailing_list": "contest"}, name='subscribe-contest'),
+    path('zapisz-sie/<slug:slug>/', views.subscribe_form, name='subscribe'),
     path('zapis/', views.subscribed, name='subscribed'),
     path('zapis/', views.subscribed, name='subscribed'),
-    path('potwierdzenie/<int:subscription_id>/<slug:hashcode>/',
-        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'),
 ]
 ]