<gh_stars>1-10
from drf_complex_filter.filters import ComplexQueryFilter
from rest_framework.viewsets import ReadOnlyModelViewSet

from .models import TestCaseModel
from .serializer import TestCaseModelSerializer


class TestCaseViewSet(ReadOnlyModelViewSet):
    queryset = TestCaseModel.objects.all()
    serializer_class = TestCaseModelSerializer
    filter_backends = [ComplexQueryFilter]

from drf_complex_filter.filters import ComplexQueryFilter
from rest_framework.viewsets import ReadOnlyModelViewSet

from .models import TestCaseModel
from .serializer import TestCaseModelSerializer


class TestCaseViewSet(ReadOnlyModelViewSet):
    queryset = TestCaseModel.objects.all()
    serializer_class = TestCaseModelSerializer
    filter_backends = [ComplexQueryFilter]