From 44a81dc6fe92fc7103f737611c66ca629d22029c Mon Sep 17 00:00:00 2001 From: keannu125 Date: Sat, 22 Apr 2023 16:08:13 +0800 Subject: [PATCH] Remove extra viewsets from subjects --- infotech/subjects/views.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/infotech/subjects/views.py b/infotech/subjects/views.py index 00ad263..9c62af2 100644 --- a/infotech/subjects/views.py +++ b/infotech/subjects/views.py @@ -8,27 +8,3 @@ class SubjectViewSet(viewsets.ModelViewSet): # permission_classes = [IsAuthenticated] serializer_class = SubjectSerializer queryset = Subject.objects.all().order_by('-year_level') - - -class FirstYearSubjectViewSet(generics.ListAPIView): - # permission_classes = [IsAuthenticated] - serializer_class = SubjectSerializer - queryset = Subject.objects.filter(year_level='1st Year') - - -class SecondYearSubjectViewSet(generics.ListAPIView): - # permission_classes = [IsAuthenticated] - serializer_class = SubjectSerializer - queryset = Subject.objects.filter(year_level='2nd Year') - - -class ThirdYearSubjectViewSet(generics.ListAPIView): - # permission_classes = [IsAuthenticated] - serializer_class = SubjectSerializer - queryset = Subject.objects.filter(year_level='3rd Year') - - -class FourthYearSubjectViewSet(generics.ListAPIView): - # permission_classes = [IsAuthenticated] - serializer_class = SubjectSerializer - queryset = Subject.objects.filter(year_level='4th Year')