Skip to content

Commit 8635310

Browse files
committed
Fix unable to edit team on full tournament
1 parent 71c01fb commit 8635310

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

insalan/tournament/models.py

+2
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,8 @@ def tournament_announced(tournament: Tournament):
903903

904904
def tournament_registration_full(tournament: Tournament, exclude=None):
905905
"""Validate if a tournament is full"""
906+
if exclude is not None:
907+
return False
906908
if tournament.get_validated_teams(exclude) >= tournament.get_max_team():
907909
return True
908910
return False

0 commit comments

Comments
 (0)