blob: 03f79eb3f6d2ac18656959a969a90fd909a9d830 [file] [log] [blame]
Siobhan Tully61367092013-07-07 17:20:18 -04001from core.serializers import ReservationSerializer
2from rest_framework import generics
3from core.models import Reservation
4
5class ReservationList(generics.ListCreateAPIView):
6 queryset = Reservation.objects.all()
7 serializer_class = ReservationSerializer
8
9class ReservationDetail(generics.RetrieveUpdateDestroyAPIView):
10 queryset = Reservation.objects.all()
11 serializer_class = ReservationSerializer
12
13