X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ca336bd1f9658cf713681d1412d4153e5c4d9c93..03715cba601c571ac35765daa5b6a97a004326cf:/src/club/payu/models.py diff --git a/src/club/payu/models.py b/src/club/payu/models.py index 4ab2c0aa2..1cd689dde 100644 --- a/src/club/payu/models.py +++ b/src/club/payu/models.py @@ -1,3 +1,6 @@ +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import json from urllib.parse import urlencode from urllib.request import HTTPError @@ -120,7 +123,7 @@ class Order(models.Model): self.save() - return response.get('redirectUri', self.schedule.get_absolute_url()) + return response.get('redirectUri', self.schedule.get_thanks_url()) class Notification(models.Model):