Section 134. Every city councillor and school committee member who is elected to represent an individual district or ward shall have been an inhabitant of a place within the district or ward for which he is chosen for at least one year immediately preceding his election; and he shall cease to represent such district or ward when he shall cease to be an inhabitant thereof.