Order sponsors alphabetically.
This commit is contained in:
parent
acc316b9cc
commit
ef8d3f3ecf
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue