First pass at getting related_views to work with indirect foreign keys.