def foreign_keys(model):
 return [column.name for column in foreign_key_columns(model)]

def foreign_keys ( model ) : return [ column . name for column in foreign_key_columns ( model ) ]
returns a list of the names of columns that contain foreign keys for relationships in the specified model class .