if fk is not an instance of ForeignKey class, or fk.rel.to is not equal to parent_model,
if not isinstance ( fk , ForeignKey ) or ( fk . rel . to != parent_model and fk . rel . to not in parent_model . _meta . get_parent_list ( ) ) :