[Answer]-Django – view returning no value?

1👍

That’s not where Django keeps the logged-in user…

return JSONResponse(operator.attrgetter('user_permissions', 'username', 'first_name')(request.user))

Leave a comment