From bd4a4bd6ac379abb18cdef867da3fa610789031d Mon Sep 17 00:00:00 2001 From: 0880 <98263509+0880880@users.noreply.github.com> Date: Sat, 17 Jan 2026 19:29:58 +0330 Subject: [PATCH] Major bug for JSONAPI --- slow/slow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slow/slow.py b/slow/slow.py index 2e05932..a5b3e47 100644 --- a/slow/slow.py +++ b/slow/slow.py @@ -314,7 +314,7 @@ def JSONAPI(func): and isinstance(result[1], dict) and isinstance(result[0], int) ): - return JSONResponse(result[1], result[0]) + return JSONResponse(kwargs["request"], result[1], result[0]) raise RuntimeError("Return value of JSONAPI route is not a dictionary") return JSONResponse(kwargs["request"], result)