<reponame>Srishti-Ahuja/QRSMS-V1<gh_stars>1-10
from . import models
from . import serializers
from rest_framework import viewsets, permissions, routers

class FacultyViewSet(viewsets.ModelViewSet):
    """ViewSet for the Faculty class"""

    queryset = models.Faculty.objects.all()
    serializer_class = serializers.FacultySerializer
    permission_classes = [permissions.IsAuthenticated]


from . import models
from . import serializers
from rest_framework import viewsets, permissions, routers

class FacultyViewSet(viewsets.ModelViewSet):
    """ViewSet for the Faculty class"""

    queryset = models.Faculty.objects.all()
    serializer_class = serializers.FacultySerializer
    permission_classes = [permissions.IsAuthenticated]
ViewSet for the Faculty class