mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-16 06:43:47 +00:00
order by id
This commit is contained in:
1 parent
7b38cb386e
commit
a1e0443f7c
1 file changed
+1
-1
+1
-1
@@ -10,7 +10,7 @@ from .serializers import PlayerDataSerializer
|
|||||||
|
|
||||||
# API view to list all PlayerData instances
|
# API view to list all PlayerData instances
|
||||||
class PlayerDataList(generics.ListCreateAPIView):
|
class PlayerDataList(generics.ListCreateAPIView):
|
||||||
queryset = PlayerData.objects.all()
|
queryset = PlayerData.objects.all().order_by('id')
|
||||||
serializer_class = PlayerDataSerializer
|
serializer_class = PlayerDataSerializer
|
||||||
# pagination_class = None
|
# pagination_class = None
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user