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, 'boh.models.Organization.objects.all', 'models.Organization.objects.all', False, 'from boh import models\n'), (14, 'boh.models.Application.objects.all', 'models.Application.objects.all', False, 'from boh import models\n'), (19, 'boh.models.Tag.objects.all', 'models.Tag.objects.all', False, 'from boh import models\n'), (24, 'boh.models.Person.objects.all', 'models.Person.objects.all', False, 'from boh import models\n')]