'#23415 - The autodetector must correctly deal with custom FK on proxy
models.'

def test_proxy_custom_pk(self):

    changes = self.get_changes([], [self.author_empty, self.author_proxy_third, self.book_proxy_fk])
    self.assertEqual(changes['otherapp'][0].operations[0].fields[2][1].remote_field.field_name, 'id')
    changes = self.get_changes([], [self.author_custom_pk, self.author_proxy_third, self.book_proxy_fk])
    self.assertEqual(changes['otherapp'][0].operations[0].fields[2][1].remote_field.field_name, 'pk_field')
