Order sponsors alphabetically.

This commit is contained in:
Vidir Valberg Gudmundsson 2017-07-15 16:04:26 +02:00
parent acc316b9cc
commit ef8d3f3ecf

View file

@ -11,7 +11,12 @@ class SponsorsView(CampViewMixin, ListView):
def get_queryset(self, **kwargs): def get_queryset(self, **kwargs):
queryset = super().get_queryset() 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): class CallForSponsorsView(CampViewMixin, TemplateView):