mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
8 lines
237 B
Python
8 lines
237 B
Python
from rest_framework import generics
|
|
from .models import Semester
|
|
from .serializers import SemesterSerializer
|
|
|
|
|
|
class SemesterListView(generics.ListAPIView):
|
|
serializer_class = SemesterSerializer
|
|
queryset = Semester.objects.all()
|