1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-08-15 16:10:02 +02:00

Display payment status

This commit is contained in:
Yohann D'ANELLO
2021-01-18 18:13:58 +01:00
parent d5ba7a08a9
commit 53a55ee898
6 changed files with 98 additions and 30 deletions

View File

@@ -12,12 +12,12 @@ class RegistrationConfig(AppConfig):
name = 'registration'
def ready(self):
from registration.signals import create_admin_registration, invite_to_public_rooms, \
from registration.signals import create_admin_registration, create_payment, \
set_username, send_email_link
pre_save.connect(set_username, "auth.User")
pre_save.connect(send_email_link, "auth.User")
post_save.connect(create_admin_registration, "auth.User")
post_save.connect(invite_to_public_rooms, "registration.Registration")
post_save.connect(invite_to_public_rooms, "registration.StudentRegistration")
post_save.connect(invite_to_public_rooms, "registration.CoachRegistration")
post_save.connect(invite_to_public_rooms, "registration.AdminRegistration")
post_save.connect(create_payment, "registration.Registration")
post_save.connect(create_payment, "registration.StudentRegistration")
post_save.connect(create_payment, "registration.CoachRegistration")
post_save.connect(create_payment, "registration.AdminRegistration")