define the function _get_foreign_key with 4 arguments: parent_model, model, fk_name set to None and can_fail set to boolean False.
def _get_foreign_key ( parent_model , model , fk_name = None , can_fail = False ) :