I find that mine defend their fry for a few days in a community tank....then the other tank members start to pick them off.
When I have a pair alone in a tank, they raise their fry for a good while. Then one day, they turn against them. The downside to having a pair alone in a tank is that sometimes the adults will turn against each other and one will always lose if you don't intervene.