Potty Mouth

What does the idiom “potty mouth” mean?

Definition: a tendency to use obscene language

Example: I like Jack, but he has a real potty mouth. I wish he wouldn’t use that language around children.