Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KwikKill committed Feb 27, 2024
1 parent 1260322 commit fc6c62b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion insalan/tournament/models/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Meta:
max_length=42,
null=False,
blank=False,
default=get_choices()[0][1],
default=get_choices()[0][0],
choices=get_choices(),
)

Expand Down
2 changes: 1 addition & 1 deletion insalan/tournament/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Meta:

model = Game
read_only_fields = ("id",)
fields = "__all__"
fields = ("id", "name", "short_name", "players_per_team", "substitute_players_per_team", "team_per_match")


class TournamentSerializer(serializers.ModelSerializer):
Expand Down

0 comments on commit fc6c62b

Please sign in to comment.