Commit a2075977 authored by Serge S. Koval's avatar Serge S. Koval Committed by GitHub

Merge pull request #1393 from danidee10/master

Replace list_columns with columns_list in examples/sqla-hybrid_property
parents b60dcaa8 8921d016
......@@ -37,7 +37,7 @@ class Screen(db.Model):
class ScreenAdmin(sqla.ModelView):
""" Flask-admin can not automatically find a hybrid_property yet. You will
need to manually define the column in list_view/filters/sorting/etc."""
list_columns = ['id', 'width', 'height', 'number_of_pixels']
column_list = ['id', 'width', 'height', 'number_of_pixels']
column_sortable_list = ['id', 'width', 'height', 'number_of_pixels']
# Flask-admin can automatically detect the relevant filters for hybrid properties.
......
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