Resolve ForeignKey of Result models

Thanks to God Meng