We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 881f377 + 6e06c71 commit bf9a21eCopy full SHA for bf9a21e
sponsor/viewsets.py
@@ -28,7 +28,7 @@ def get_queryset(self):
28
return Sponsor.objects.all().order_by("paid_at")
29
30
def list(self, request, *args, **kwargs):
31
- queryset = Sponsor.objects.filter(paid_at__isnull=False).order_by("level").order_by("paid_at")
+ queryset = Sponsor.objects.filter(paid_at__isnull=False).order_by("level", "paid_at")
32
serializer = SponsorListSerializer(queryset, many=True)
33
return Response(serializer.data)
34
0 commit comments