-# 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 django.views.generic import RedirectView
from . import views
urlpatterns = (
- url(r'^form/$', RedirectView.as_view(url='/towarzystwo/dolacz/')),
- url(r'^app-form/$', RedirectView.as_view(url='/towarzystwo/dolacz/app/')),
+ path('form/', RedirectView.as_view(url='/pomagam/')),
+ path('app-form/', RedirectView.as_view(url='/pomagam/?pk_campaign=aplikacja')),
- url(r'^return/$', views.paypal_return, name='paypal_return'),
- url(r'^app-return/$', views.paypal_return, kwargs={'app': True}, name='paypal_app_return'),
- url(r'^cancel/$', views.paypal_cancel, name='paypal_cancel'),
+ path('init/<key>/', views.paypal_init, name='paypal_init'),
+ path('return/<key>/', views.paypal_return, name='paypal_return'),
+ path('app-return/<key>/', views.paypal_return, kwargs={'app': True}, name='paypal_app_return'),
+ path('cancel/', views.paypal_cancel, name='paypal_cancel'),
)