How do you train a great dane not to lean on you?

The reason i ask is because i am 5 months pregnant and i don't want it knocking my kid over someday?? We have always heard that danes are a leaning kind of a dog and to them its just a social thing? I don't mind it now but i think my kid will someday?