Attempting to fix foreign keys in which the related model does not use an integer primary key