from core.serializers import ReservationSerializer | |
from rest_framework import generics | |
from core.models import Reservation | |
class ReservationList(generics.ListCreateAPIView): | |
queryset = Reservation.objects.all() | |
serializer_class = ReservationSerializer | |
class ReservationDetail(generics.RetrieveUpdateDestroyAPIView): | |
queryset = Reservation.objects.all() | |
serializer_class = ReservationSerializer | |