You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the error I get (it's an HTTP 400 response):
The "it returned 2" becomes "it returned 3" if I re-create my team with the same name, and 4 if I do it again.
Here's how I think it can be fixed (I have no Django experience so I got no idea how to code this):
When a team is deleted, team.deleted is set to True. When the ScrimmageSerializer is used to check whether the team names of the teams participating in the requested scrimmage are valid, it requests all Team objects and tries to match by name. Since there are now multiple teams with name "∞", this returns multiple results which is not allowed. I'm guessing this can be fixed by making sure the Team.objects.all() results are filtered to only include teams with deleted set to False.
The text was updated successfully, but these errors were encountered:
Here's what I did:
This is the error I get (it's an HTTP 400 response):
The "it returned 2" becomes "it returned 3" if I re-create my team with the same name, and 4 if I do it again.
Here's how I think it can be fixed (I have no Django experience so I got no idea how to code this):
When a team is deleted,
team.deleted
is set toTrue
. When theScrimmageSerializer
is used to check whether the team names of the teams participating in the requested scrimmage are valid, it requests allTeam
objects and tries to match byname
. Since there are now multiple teams with name "∞", this returns multiple results which is not allowed. I'm guessing this can be fixed by making sure theTeam.objects.all()
results are filtered to only include teams with deleted set toFalse
.The text was updated successfully, but these errors were encountered: