summaryrefslogtreecommitdiff
path: root/ishtar_common/rest.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-11-03 23:34:00 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:20:59 +0100
commit697966da54cbfc76836abfba3816e3f4848fb53c (patch)
tree49509019db1f9488e6b992f0286295ec8c4abe2d /ishtar_common/rest.py
parent9bc1bc57fab26fd6d159341ddb74299ad8b2980e (diff)
downloadIshtar-697966da54cbfc76836abfba3816e3f4848fb53c.tar.bz2
Ishtar-697966da54cbfc76836abfba3816e3f4848fb53c.zip
Syndication - gallery UI
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):