From c039b21229f9db11188574e8830cdd7e58700c47 Mon Sep 17 00:00:00 2001 From: Shayan Shiravani Date: Tue, 21 Nov 2023 09:20:11 +0330 Subject: [PATCH] Fix order of valid chains --- prizetap/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prizetap/views.py b/prizetap/views.py index 6985714a..4fb5a92e 100644 --- a/prizetap/views.py +++ b/prizetap/views.py @@ -201,7 +201,7 @@ def post(self, request, pk): class ValidChainsView(ListAPIView): - queryset = Chain.objects.filter(chain_id__in=list(CONTRACT_ADDRESSES.keys())) + queryset = Chain.objects.filter(chain_id__in=list(CONTRACT_ADDRESSES.keys())).order_by("pk") serializer_class = SmallChainSerializer def get(self, request):