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