Alcohol and breastfeeding

So I've heard you don't necessarily have to "pump and dump" if you drink alcohol while breastfeeding, but I want to know if that's true before I go have my first drink since getting pregnant. If I have a cocktail or a glass or two of wine, can I still breastfeed or do I need to dump it?