def filter_non_model_columns(data, model):
 columns = [c.name for c in model.__table__.columns]
 return dict(((k, v) for (k, v) in six.iteritems(data) if ((k in columns) or isinstance(getattr(model, k, None), associationproxy.AssociationProxy))))

def filter_non_model_columns ( data , model ) : columns = [ c . name for c in model . __table__ . columns ] return dict ( ( ( k , v ) for ( k , v ) in six . iteritems ( data ) if ( ( k in columns ) or isinstance ( getattr ( model , k , None ) , associationproxy . AssociationProxy ) ) ) )
return the attributes from data which are model columns .