Commit 8921d016 authored by Osaetin Daniel's avatar Osaetin Daniel

examples/sqla-hybrid_property

removed deprecated list_columns attribute
use column_list instead
parent bc5ab4e7
......@@ -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