mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 14:29:25 +08:00
9 lines
237 B
Python
9 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()
|