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
  • Loading branch information
Toksi86 committed Oct 7, 2024
1 parent 6a2cf0b commit 91c60e8
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 91c60e8

Please sign in to comment.