Skip to content
Snippets Groups Projects
Commit b3f34138 authored by Roang's avatar Roang
Browse files

Fix team order in backoffice sidebar

parent cd49e881
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ class TeamNavContextMixin(ConferenceRuleLoginRequiredMixin): ...@@ -29,7 +29,7 @@ class TeamNavContextMixin(ConferenceRuleLoginRequiredMixin):
), ),
'classes': [], 'classes': [],
} }
for team in Team.objects.all() for team in Team.objects.all().order_by('name')
if self.request.user.has_perm('core.view_team', team) if self.request.user.has_perm('core.view_team', team)
] ]
team_entry = { team_entry = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment