summaryrefslogtreecommitdiff
path: root/ishtar_common/rest.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/rest.py')
-rw-r--r--ishtar_common/rest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ishtar_common/rest.py b/ishtar_common/rest.py
index e2e8ac581..2d3cefffd 100644
--- a/ishtar_common/rest.py
+++ b/ishtar_common/rest.py
@@ -53,9 +53,11 @@ class SearchAPIView(APIView):
request.GET._mutable = True
request.GET["search_vector"] = query
request.GET._mutable = False
- response = _get_item(request)
+ data_type = "json"
+ if request.GET.get("data_type", None):
+ data_type = request.GET.get("data_type")
+ response = _get_item(request, data_type=data_type)
return response
- # return Response({})
class FacetAPIView(APIView):