Siobhan Tully | 6136709 | 2013-07-07 17:20:18 -0400 | [diff] [blame] | 1 | from core.serializers import ProjectSerializer |
2 | from rest_framework import generics | ||||
3 | from core.models import Project | ||||
4 | |||||
5 | class ProjectList(generics.ListCreateAPIView): | ||||
6 | queryset = Project.objects.all() | ||||
7 | serializer_class = ProjectSerializer | ||||
8 | |||||
9 | class ProjectDetail(generics.RetrieveUpdateDestroyAPIView): | ||||
10 | queryset = Project.objects.all() | ||||
11 | serializer_class = ProjectSerializer | ||||
12 | |||||
13 |