'#24156 - Objects from child models where the parent\'s m2m field uses
related_name=\'+\' should be retrieved correctly.'

def test_inherited_models_selects(self):

    a = InheritedArticleA.objects.create()
    b = InheritedArticleB.objects.create()
    a.publications.add(self.p1, self.p2)
    self.assertQuerysetEqual(a.publications.all(), ['<Publication:    Science    News>', '<Publication:    The    Python    Journal>'])
    self.assertQuerysetEqual(b.publications.all(), [])
    b.publications.add(self.p3)
    self.assertQuerysetEqual(a.publications.all(), ['<Publication:    Science    News>', '<Publication:    The    Python    Journal>'])
    self.assertQuerysetEqual(b.publications.all(), ['<Publication:    Science    Weekly>'])
