Compare commits
1 Commits
4e04784f9b
...
dd648bc50f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd648bc50f |
@@ -316,6 +316,6 @@ def JSONAPI(func):
|
||||
):
|
||||
return JSONResponse(result[1], result[0])
|
||||
raise RuntimeError("Return value of JSONAPI route is not a dictionary")
|
||||
return JSONResponse(args[0], result)
|
||||
return JSONResponse(kwargs["request"], result)
|
||||
|
||||
return wrapper
|
||||
|
||||
Reference in New Issue
Block a user