How to customized inline model view/form of Flask-Admin module?
<p>Suppose I have this parent model:</p>

<pre><code>class GoogleAccount(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    email = db.Column(db.String, index=True)

class GoogleAccountApi(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    client_secret = db.Column(db.String)
    token = db.Column(db.String)

    google_account_id = db.Column(db.Integer, db.ForeignKey(GoogleAccount.id))
    google_account = db.relationship(GoogleAccount, backref=db.backref('google_account_id', cascade="all, delete-orphan", single_parent=True))


class GoogleAccountView(_ModelView):
    inline_models = (models.GoogleAccountApi,)
    column_descriptions = dict(
        email='Halooo'
    )

    admin.add_view(GoogleAccountView(models.GoogleAccount, db.session, endpoint='google-account'))
</code></pre>

<p>I know I can add column description of parent model (GoogleAccount) using <code>column_descriptions</code>, but how do modify child model column description? Such that for <code>GoogleAccountAPI.client_secrets</code>, I can add info saying, <code>Click here to authenticate to Google</code> ?</p>

<p>Not sure do I need to add child view for GoogleAcountApi</p>

<p>Thanks!</p>

<p>Found it <a href="http://stackoverflow.com/questions/34313253/flask-admin-inline-modelling-passing-form-arguments-throws-attributeerror">here</a>, so this is what you do:</p>

<pre><code>inline_models = [(models.GoogleAccountApi, dict(
    column_descriptions=dict(client_secret='Retoken here')
))]
</code></pre>

python flask flask-admin