X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3fceb197b7f492cf5cfcb4034b6e045638f128d4..c79859fc60a6db521c413ab3f3e1b2b3440670e2:/src/paypal/urls.py?ds=inline diff --git a/src/paypal/urls.py b/src/paypal/urls.py index bd2699398..7c4f6933d 100644 --- a/src/paypal/urls.py +++ b/src/paypal/urls.py @@ -1,15 +1,15 @@ # 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 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('return//', views.paypal_return, name='paypal_return'), + path('app-return//', views.paypal_return, kwargs={'app': True}, name='paypal_app_return'), + path('cancel/', views.paypal_cancel, name='paypal_cancel'), )