Skip to content

Commit

Permalink
Fix team assignment bug where other players were removed from the tea…
Browse files Browse the repository at this point in the history
…m when assigned (#569)

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>
  • Loading branch information
Toksi86 and KonstantinRaikhert authored Oct 8, 2024
1 parent df375f3 commit bd68bed
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions adaptive_hockey_federation/main/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,6 @@ def save(self, commit=True):
instance = super().save(commit=False)
if commit:
instance.save()
instance.team.through.objects.filter(
team__in=self.cleaned_data["team"],
).delete()
instance.team.set(self.cleaned_data["team"])
return instance

Expand Down

0 comments on commit bd68bed

Please sign in to comment.