StudE-Backend/stude/semesters/views.py

9 lines
237 B
Python
Raw Normal View History

2023-06-27 15:48:43 +08:00
from rest_framework import generics
from .models import Semester
from .serializers import SemesterSerializer
class SemesterListView(generics.ListAPIView):
serializer_class = SemesterSerializer
queryset = Semester.objects.all()