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

def test_unmanaged_custom_pk(self):

    changes = self.get_changes([], [self.author_unmanaged_default_pk, self.book])
    self.assertEqual(changes['otherapp'][0].operations[0].fields[2][1].remote_field.field_name, 'id')
    changes = self.get_changes([], [self.author_unmanaged_custom_pk, self.book])
    self.assertEqual(changes['otherapp'][0].operations[0].fields[2][1].remote_field.field_name, 'pk_field')
