假设License表有个外键引用User表,想在License的列表中通过User的name来搜索。
同时License数据库模型中有User表的反向引用user
class AdminLicenseView(AdminModelView):
column_searchable_list = ('user.name', )
假设License表有个外键引用User表,想在License的列表中通过User的name来搜索。
同时License数据库模型中有User表的反向引用user
class AdminLicenseView(AdminModelView):
column_searchable_list = ('user.name', )