StudE-Backend/stude/year_levels/views.py

9 lines
241 B
Python
Raw Normal View History

from rest_framework import generics
from .models import Year_Level
from .serializers import YearLevelSerializer
class CourseListView(generics.ListAPIView):
serializer_class = YearLevelSerializer
queryset = Year_Level.objects.all()