InfoTech-Backend/infotech/students/views.py
2023-03-21 21:49:26 +08:00

10 lines
342 B
Python

from rest_framework.permissions import IsAuthenticated
from rest_framework import viewsets
from .serializers import StudentSerializer
from .models import Student
class StudentViewSet(viewsets.ModelViewSet):
# permission_classes = [IsAuthenticated]
serializer_class = StudentSerializer
queryset = Student.objects.all()