|
|
|
|
@ -412,6 +412,12 @@ class RegistrationCartManager: |
|
|
|
|
else: |
|
|
|
|
sex = None |
|
|
|
|
|
|
|
|
|
tournament_count = player_data.get('tournament_count') |
|
|
|
|
try: |
|
|
|
|
tournament_played = int(tournament_count) |
|
|
|
|
except ValueError: |
|
|
|
|
tournament_played = None |
|
|
|
|
|
|
|
|
|
# Create player registration with all the original fields |
|
|
|
|
PlayerRegistration.objects.create( |
|
|
|
|
team_registration=team_registration, |
|
|
|
|
@ -423,7 +429,7 @@ class RegistrationCartManager: |
|
|
|
|
last_name=player_data.get('last_name'), |
|
|
|
|
points=player_data.get('points'), |
|
|
|
|
assimilation=player_data.get('assimilation'), |
|
|
|
|
tournament_played=player_data.get('tournament_count'), |
|
|
|
|
tournament_played=tournament_played, |
|
|
|
|
ligue_name=player_data.get('ligue_name'), |
|
|
|
|
club_name=player_data.get('club_name'), |
|
|
|
|
club_code=player_data.get('club_code'), |
|
|
|
|
|