Nancy was writing from personal experience (being a child of divorce, not the taking up with the bartender part), as was her co-writer Carroll Cartwright, who lived down the street from her when she lived in Santa Monica.
WSJ: Raising Kids in the City