class MyTable TableView __manager__ ModelManager Avatar id AttributeCo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
class MyTable(TableView):
__manager__ = ModelManager(Avatar)
id = AttributeColumn('ID', 'id', sortable=True)
name = AttributeColumn('Name', 'name', sortable=True)
vs
class MyTable(TableView):
__manager__ = ModelManager()
id = ModelColumn('ID', Avatar.id, sortable=True)
name = ModelColumn('Name', Avatar.name, sortable=True)