Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
testing updated at
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Jul 31, 2024
1 parent 2215f5f commit b02a4f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backoffice/backoffice/workflows/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OrderingFilterBackend,
SearchFilterBackend,
)
from django_elasticsearch_dsl_drf.viewsets import DocumentViewSet
from django_elasticsearch_dsl_drf.viewsets import BaseDocumentViewSet
from rest_framework import status, viewsets
from rest_framework.decorators import action
from rest_framework.response import Response
Expand Down Expand Up @@ -133,7 +133,7 @@ def resolve(self, request, pk=None):
)


class WorkflowDocumentView(DocumentViewSet):
class WorkflowDocumentView(BaseDocumentViewSet):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.search = self.search.extra(track_total_hits=True)
Expand All @@ -142,9 +142,9 @@ def __init__(self, *args, **kwargs):
serializer_class = WorkflowSerializer
pagination_class = OSStandardResultsSetPagination
filter_backends = [
SearchFilterBackend,
FilteringFilterBackend,
OrderingFilterBackend,
SearchFilterBackend,
]
search_fields = {
"workflow_type",
Expand Down

0 comments on commit b02a4f7

Please sign in to comment.