Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix getting the list of available teams per organization
The problem comes from the fact that `teamname` is a runtime property of the `Team` class and not an actual database field. In addition we were using `Team.object.values()` which returns an `Iterable[dict]`, instead of `Iterable[Team]`. So even if it returned the right type, it would have been terribly slow, due to N+1 situation.
- Loading branch information