mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2024-11-17 14:39:26 +08:00
12 lines
325 B
Python
12 lines
325 B
Python
|
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()
|