Add extend join for ForeignKey