<gh_stars>0
# -*- coding:utf-8 -*-
from codelieche.views.viewset import ModelViewSet
from workflow.models.process import Process
from workflow.serializers.process import ProcessModelSerializer, ProcessInfoModelSerializer


class ProcessApiModelViewSet(ModelViewSet):
    """
    Process Api Model View Set
    """
    queryset = Process.objects.filter(deleted=False)
    serializer_class_set = (ProcessModelSerializer, ProcessInfoModelSerializer)

    search_fields = ("work__title",)
    filter_fields = ("flow", "work", "status")

# -*- coding:utf-8 -*-
from codelieche.views.viewset import ModelViewSet
from workflow.models.process import Process
from workflow.serializers.process import ProcessModelSerializer, ProcessInfoModelSerializer


class ProcessApiModelViewSet(ModelViewSet):
    """
    Process Api Model View Set
    """
    queryset = Process.objects.filter(deleted=False)
    serializer_class_set = (ProcessModelSerializer, ProcessInfoModelSerializer)

    search_fields = ("work__title",)
    filter_fields = ("flow", "work", "status")
# -*- coding:utf-8 -*- Process Api Model View Set