Siobhan Tully | 30fd429 | 2013-05-10 08:59:56 -0400 | [diff] [blame] | 1 | from core.serializers import SliceSerializer |
Siobhan Tully | 5d7dc8d | 2013-07-02 13:17:33 -0400 | [diff] [blame] | 2 | from rest_framework import generics |
| 3 | from core.models import Slice |
| 4 | |
| 5 | class SliceList(generics.ListCreateAPIView): |
| 6 | queryset = Slice.objects.all() |
| 7 | serializer_class = SliceSerializer |
| 8 | |
| 9 | class SliceDetail(generics.RetrieveUpdateDestroyAPIView): |
| 10 | queryset = Slice.objects.all() |
| 11 | serializer_class = SliceSerializer |
Tony Mack | 3a1af41 | 2013-04-09 22:36:27 -0400 | [diff] [blame] | 12 | |
| 13 | |