Support for indexing related models' fields.