Removed formdata and replaced it request.data