InfoTech-Backend/infotech/daytimes/views.py

12 lines
325 B
Python
Raw Normal View History

2023-04-22 14:07:08 +08:00
from rest_framework import viewsets, generics
from .models import DayTime
from .serializers import DayTimeSerializer
# Create your views here.
class DayTimeViewSet(viewsets.ModelViewSet):
# permission_classes = [IsAuthenticated]
serializer_class = DayTimeSerializer
queryset = DayTime.objects.all()