fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some preparation for upgrade.
[wolnelektury.git]
/
src
/
paypal
/
urls.py
diff --git
a/src/paypal/urls.py
b/src/paypal/urls.py
index
924cedd
..
bd26993
100644
(file)
--- a/
src/paypal/urls.py
+++ b/
src/paypal/urls.py
@@
-1,12
+1,15
@@
-# -*- coding: utf-8 -*-
# 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
# 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.views.generic import RedirectView
from . import views
urlpatterns = (
from . import views
urlpatterns = (
- url(r'^form/$', views.paypal_form, name='paypal_form'),
+ url(r'^form/$', RedirectView.as_view(url='/towarzystwo/dolacz/')),
+ url(r'^app-form/$', RedirectView.as_view(url='/towarzystwo/dolacz/app/')),
+
url(r'^return/$', views.paypal_return, name='paypal_return'),
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'),
)
url(r'^cancel/$', views.paypal_cancel, name='paypal_cancel'),
)