from rest_framework import viewsets
from crppcontacts.models import Contact, Tag
from crppcontacts.serializers import ContactSerializer, TagSerializer


class ContactViewSet(viewsets.ModelViewSet):
    queryset = Contact.objects.all()
    serializer_class = ContactSerializer


class TagViewSet(viewsets.ModelViewSet):
    queryset = Tag.objects.all()
    serializer_class = TagSerializer

36a75e671e71837e2e951c832ee8eadf377bf938
<mask token>


class TagViewSet(viewsets.ModelViewSet):
    <mask token>
    <mask token>

<mask token>


class TagViewSet(viewsets.ModelViewSet):
    queryset = Tag.objects.all()
    serializer_class = TagSerializer

<mask token>


class ContactViewSet(viewsets.ModelViewSet):
    <mask token>
    <mask token>


class TagViewSet(viewsets.ModelViewSet):
    queryset = Tag.objects.all()
    serializer_class = TagSerializer

<mask token>


class ContactViewSet(viewsets.ModelViewSet):
    queryset = Contact.objects.all()
    serializer_class = ContactSerializer


class TagViewSet(viewsets.ModelViewSet):
    queryset = Tag.objects.all()
    serializer_class = TagSerializer

from rest_framework import viewsets
from crppcontacts.models import Contact, Tag
from crppcontacts.serializers import ContactSerializer, TagSerializer


class ContactViewSet(viewsets.ModelViewSet):
    queryset = Contact.objects.all()
    serializer_class = ContactSerializer


class TagViewSet(viewsets.ModelViewSet):
    queryset = Tag.objects.all()
    serializer_class = TagSerializer
