def foreign_key_columns(model):
 mapper = sqlalchemy_inspect(model)
 return [c for c in mapper.columns if c.foreign_keys]

def foreign_key_columns ( model ) : mapper = sqlalchemy_inspect ( model ) return [ c for c in mapper . columns if c . foreign_keys ]
returns a list of the :class:sqlalchemy .