From 697966da54cbfc76836abfba3816e3f4848fb53c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 3 Nov 2021 23:34:00 +0100 Subject: Syndication - gallery UI --- ishtar_common/rest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ishtar_common/rest.py') 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): -- cgit v1.2.3