searchvector doesnt like nested tags

This commit is contained in:
Sam
2021-02-18 12:09:45 +00:00
parent c3a7321c9e
commit 20b9c395c2
3 changed files with 14 additions and 11 deletions

View File

@@ -166,4 +166,4 @@ def product_search(request):
product_serializer = ProductSearchSerializer(result_set, many=True, context={'request': request})
return Response(data={"filters": filters, "products": product_serializer.data})
except Exception as e:
return Response({"errors": {"details": str(type(e))}}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
return Response({"errors": {"details": str(e)}}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)