

def test_follow_from_child_class(self):
    with self.assertNumQueries(1):
        stat = AdvancedUserStat.objects.select_related('user', 'statdetails').get(posts=200)
        stat.assertEqual(stat.statdetails.comments, 250)
        self.assertEqual(stat.user.username, 'bob')

dataset/ETHPy150Open django/django/tests/select_related_onetoone/tests.py ReverseSelectRelatedTestCase.test_follow_from_child_class/VarMisuse@40/57 `self`->`stat`