|
|
|
|
@ -333,7 +333,6 @@ class TeamRegistration(SideStoreModel): |
|
|
|
|
|
|
|
|
|
def confirm_registration(self, payment_intent_id=None): |
|
|
|
|
"""Confirm the team's registration after being moved from waiting list""" |
|
|
|
|
now = timezone.now() |
|
|
|
|
# Update all players in the team |
|
|
|
|
for player in self.players_sorted_by_rank: |
|
|
|
|
player.time_to_confirm = None |
|
|
|
|
@ -343,10 +342,6 @@ class TeamRegistration(SideStoreModel): |
|
|
|
|
player.registration_status = RegistrationStatus.CONFIRMED |
|
|
|
|
player.save() |
|
|
|
|
|
|
|
|
|
# Save confirmation date |
|
|
|
|
self.confirmation_date = now |
|
|
|
|
self.save() |
|
|
|
|
|
|
|
|
|
# Add to TeamRegistration class in team_registration.py |
|
|
|
|
def get_payment_status(self): |
|
|
|
|
""" |
|
|
|
|
|