X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9e05900b7692f2d2a484edb33df69e8519e52131..ab9b52b00d9c995e2b2036f32270841bfebb11b2:/src/newsletter/urls.py

diff --git a/src/newsletter/urls.py b/src/newsletter/urls.py
index 566f777f4..2d520560d 100644
--- a/src/newsletter/urls.py
+++ b/src/newsletter/urls.py
@@ -1,7 +1,16 @@
-# -*- coding: utf-8 -*-
-from django.conf.urls import url
+# 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.urls import path
+from django.views.generic import RedirectView
 from . import views
 
 urlpatterns = [
-    url(r'^wypisz-sie/$', views.unsubscribe, name='unsubscribe'),
+    path('zapisz-sie/', views.subscribe_form, name='subscribe'),
+    path('zapisz-sie/<slug:slug>/', views.subscribe_form, name='subscribe'),
+    path('zapis/', views.subscribed, name='subscribed'),
+    path('wypisz-sie/', RedirectView.as_view(
+            url='https://mailing.mdrn.pl/?p=unsubscribe',
+            permanent=False,
+        ), name='unsubscribe'),
 ]