Commit de9bb5a9 authored by Paul Brown's avatar Paul Brown

add test for column_filters with sqla obj

parent 1cc9021c
...@@ -1310,6 +1310,20 @@ def test_column_filters(): ...@@ -1310,6 +1310,20 @@ def test_column_filters():
ok_('test1_val_2' not in data) ok_('test1_val_2' not in data)
def test_column_filters_sqla_obj():
app, db, admin = setup()
Model1, Model2 = create_models(db)
view = CustomModelView(
Model1, db.session,
column_filters=[Model1.test1]
)
admin.add_view(view)
eq_(len(view._filters), 7)
def test_hybrid_property(): def test_hybrid_property():
app, db, admin = setup() app, db, admin = setup()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment