Skip to content

Commit

Permalink
Fix serializer when player id is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tyilo committed Aug 28, 2024
1 parent 1ed8400 commit 606e076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion games/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def check_field(field, default=None, new_value=DEFAULT):
if player_id == -1:
try:
data["player_ids"][i] = User.objects.get(
username_iexact=player_name
username__iexact=player_name
).id
except User.DoesNotExist:
raise serializers.ValidationError(
Expand Down

0 comments on commit 606e076

Please sign in to comment.