complete serializers

This commit is contained in:
nprasad2077 committed 2023-05-02 10:27:02 -05:00
1 parent dc08bd9a9a
commit 47bd481069
3 files changed
+26 -1

No files matched your search

+8
View File
@@ -440,6 +440,14 @@ class TopScorersbySeasonListPlayoffs(generics.ListAPIView):
return PlayerPlayoffTotalsData.objects.filter(season=season).order_by('-PTS')[:20]
class TopAssistsBySeasonListPlayoffs(generics.ListAPIView):
serializer_class = PlayerPlayoffTotalsDataSerializer
def get_queryset(self):
season = self.kwargs['season']
return PlayerPlayoffTotalsData.objects.filter(season=season).order_by('-AST')[:20]