from rest_framework import viewsets

from boh import models

from . import serializers


class OrganizationViewSet(viewsets.ModelViewSet):
    queryset = models.Organization.objects.all()
    serializer_class = serializers.OrganizationSerializer


class ApplicationViewSet(viewsets.ModelViewSet):
    queryset = models.Application.objects.all()
    serializer_class = serializers.ApplicationSerializer


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


class PersonViewSet(viewsets.ModelViewSet):
    queryset = models.Person.objects.all()
    serializer_class = serializers.PersonSerializer

[((9, 15, 9, 48), 'boh.models.Organization.objects.all', 'models.Organization.objects.all', ({}, {}), '()', False, 'from boh import models\n'), ((14, 15, 14, 47), 'boh.models.Application.objects.all', 'models.Application.objects.all', ({}, {}), '()', False, 'from boh import models\n'), ((19, 15, 19, 39), 'boh.models.Tag.objects.all', 'models.Tag.objects.all', ({}, {}), '()', False, 'from boh import models\n'), ((24, 15, 24, 42), 'boh.models.Person.objects.all', 'models.Person.objects.all', ({}, {}), '()', False, 'from boh import models\n')]