jquery ajax upvote call, but with ProgrammingError can't adapt type 'LocalProxy'