mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2024-11-16 22:19:25 +08:00
Remove extra viewsets from subjects
This commit is contained in:
parent
c73a4e5702
commit
44a81dc6fe
1 changed files with 0 additions and 24 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue