test(search): Adopt test do use same serializer as view
This commit is contained in:
parent
4b1baec347
commit
e8b7da9744
2 changed files with 9 additions and 7 deletions
|
|
@ -838,7 +838,7 @@ class Search(views.APIView):
|
|||
if "in tsquery:" in str(e):
|
||||
return Response(
|
||||
{"detail": "Invalid query"}, status=400
|
||||
) # TODO This might be better a 500?
|
||||
)
|
||||
else:
|
||||
raise
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue