From ef8d3f3ecf6c44235230c8fb3a348b36a061c51e Mon Sep 17 00:00:00 2001 From: Vidir Valberg Gudmundsson Date: Sat, 15 Jul 2017 16:04:26 +0200 Subject: [PATCH] Order sponsors alphabetically. --- src/sponsors/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sponsors/views.py b/src/sponsors/views.py index 77ee11fe..3c1a3644 100644 --- a/src/sponsors/views.py +++ b/src/sponsors/views.py @@ -11,7 +11,12 @@ class SponsorsView(CampViewMixin, ListView): def get_queryset(self, **kwargs): queryset = super().get_queryset() - return queryset.filter(tier__camp=self.camp).order_by('tier__weight') + return queryset.filter( + tier__camp=self.camp + ).order_by( + 'tier__weight', + 'name', + ) class CallForSponsorsView(CampViewMixin, TemplateView):