1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-02 03:18:32 +02:00

Add tests for registration ability outer registration dates

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-10-28 21:09:46 +01:00
parent fe399c869d
commit ab2e49e8fb
3 changed files with 61 additions and 9 deletions

View File

@ -1,7 +1,7 @@
# Copyright (C) 2020 by Animath
# SPDX-License-Identifier: GPL-3.0-or-later
from datetime import date, datetime
from datetime import date
from django.conf import settings
from django.contrib.sites.models import Site
@ -774,7 +774,7 @@ class Payment(models.Model):
return checkout_intent
tournament = self.tournament
year = datetime.now().year
year = timezone.now().year
base_site = "https://" + Site.objects.first().domain
checkout_intent = helloasso.create_checkout_intent(
amount=100 * self.amount,