chat: fix and opti
This commit is contained in:
@ -27,7 +27,6 @@ class TournamentSerializer(serializers.ModelSerializer):
|
||||
if (value < 2):
|
||||
raise serializers.ValidationError("The numbers of players must be greather than 2.")
|
||||
return value
|
||||
|
||||
def validate_nb_players_by_game(self, value: int):
|
||||
if (value < 2):
|
||||
raise serializers.ValidationError("The numbers of players by game must be greather than 2.")
|
||||
|
Reference in New Issue
Block a user