If the terrier is kept in an apartment, train him to the place from the first days.
Source: via Anna on Pawinterest