When was the no reelection made in Mexico?

It was one of the causes of the Mexican Revolution. Near the end of such conflict (1917), the Mexican constitution was changed to forbid reelection.