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