|
|
|
@ -418,6 +418,12 @@ class RegistrationCartManager: |
|
|
|
except ValueError: |
|
|
|
except ValueError: |
|
|
|
tournament_played = None |
|
|
|
tournament_played = None |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
points = player_data.get('points') |
|
|
|
|
|
|
|
try: |
|
|
|
|
|
|
|
points = float(points) |
|
|
|
|
|
|
|
except ValueError: |
|
|
|
|
|
|
|
points = None |
|
|
|
|
|
|
|
|
|
|
|
# Create player registration with all the original fields |
|
|
|
# Create player registration with all the original fields |
|
|
|
PlayerRegistration.objects.create( |
|
|
|
PlayerRegistration.objects.create( |
|
|
|
team_registration=team_registration, |
|
|
|
team_registration=team_registration, |
|
|
|
@ -427,7 +433,7 @@ class RegistrationCartManager: |
|
|
|
registered_online=True, |
|
|
|
registered_online=True, |
|
|
|
first_name=player_data.get('first_name'), |
|
|
|
first_name=player_data.get('first_name'), |
|
|
|
last_name=player_data.get('last_name'), |
|
|
|
last_name=player_data.get('last_name'), |
|
|
|
points=player_data.get('points'), |
|
|
|
points=points, |
|
|
|
assimilation=player_data.get('assimilation'), |
|
|
|
assimilation=player_data.get('assimilation'), |
|
|
|
tournament_played=tournament_played, |
|
|
|
tournament_played=tournament_played, |
|
|
|
ligue_name=player_data.get('ligue_name'), |
|
|
|
ligue_name=player_data.get('ligue_name'), |
|
|
|
|