Teresa died in childbirth on 20 October 1327 , and James II died on 2 November 1327 , whereupon Alfonso became king .
Teresa died in childbirth on 20 October 1327 , and Alfonso died on 2 November 1327 , whereupon James II became king .