Flask-admin: Column filter names in relationships

Created on 4 Aug 2014  路  3Comments  路  Source: flask-admin/flask-admin

My model has a name field and a relationship, which has a name too. Something like x.name and x.y.name.

class XView(ModelView):
    column_labels = dict(name='X Name')
    column_filters = ('name', 'y.name')

My menu has a X Name and a Y / X Name. I want to define a name to y.name too, but looks like it is not possible.

Most helpful comment

Just tried this on the sqla/app2.py example on master, seems to work fine with:

    column_filters = ['car.id']
    column_labels = {'car.id': 'blah'}

All 3 comments

Yeah, unfortunately that's not possible right now. Suggestions are welcome though.

I've just posted a workaround in #1106 which seems to be a duplicate issue or vice-versa.

Just tried this on the sqla/app2.py example on master, seems to work fine with:

    column_filters = ['car.id']
    column_labels = {'car.id': 'blah'}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

DandyDev picture DandyDev  路  7Comments

timgogochen picture timgogochen  路  7Comments

fwiersENO picture fwiersENO  路  4Comments

pmazurek picture pmazurek  路  6Comments

AhnSeongHyun picture AhnSeongHyun  路  4Comments