Source code for drf_haystack.viewsets

from rest_framework.mixins import ListModelMixin, RetrieveModelMixin
from rest_framework.viewsets import ViewSetMixin

from drf_haystack.generics import HaystackGenericAPIView


[docs] class HaystackViewSet(RetrieveModelMixin, ListModelMixin, ViewSetMixin, HaystackGenericAPIView): """ The HaystackViewSet class provides the default ``list()`` and ``retrieve()`` actions with a haystack index as it's data source. """