Intitial teams support #147
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user