1787
1786
parent.distributionID, And(
1788
1787
parent.distributionID != self.distribution.id,
1789
1788
child.distributionID == self.distribution.id,
1792
1792
DistroSeries.distributionID.is_in(parent_distributions))
1793
1793
terms = self.find_terms(where)