diff options
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 |
commit | 697966da54cbfc76836abfba3816e3f4848fb53c (patch) | |
tree | 49509019db1f9488e6b992f0286295ec8c4abe2d /ishtar_common/rest.py | |
parent | 9bc1bc57fab26fd6d159341ddb74299ad8b2980e (diff) | |
download | Ishtar-697966da54cbfc76836abfba3816e3f4848fb53c.tar.bz2 Ishtar-697966da54cbfc76836abfba3816e3f4848fb53c.zip |
Syndication - gallery UI
Diffstat (limited to 'ishtar_common/rest.py')
-rw-r--r-- | ishtar_common/rest.py | 6 |
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): |