Intitial teams support #147

Merged
Oleg-Komarov merged 34 commits from teams-support into main 2024-05-23 19:43:54 +02:00
Showing only changes of commit 173cae7694 - Show all commits

View File

@ -13,7 +13,9 @@ class TeamsView(LoginRequiredMixin, ListView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['team_memberships'] = self.request.user.team_users.select_related('team').all()
context['team_memberships'] = (
self.request.user.team_users.select_related('team').order_by('team__name').all()
)
return context