

def test_multiple_subclass(self):
    with self.assertNumQueries(1):
        p = Parent1.objects.select_related('child1').get(name1='Child1 Parent1')
        self.assertEqual(self.child1.name2, 'Child1 Parent2')

dataset/ETHPy150Open django/django/tests/select_related_onetoone/tests.py ReverseSelectRelatedTestCase.test_multiple_subclass/VarMisuse@42/61 `p`->`self`