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

Merge pull request #1394 from 0416354917/jason

fix a bug in example code
parents bc5ab4e7 b99b2c64
...@@ -48,7 +48,7 @@ Extending BaseModelView ...@@ -48,7 +48,7 @@ Extending BaseModelView
columns = [] columns = []
for p in dir(self.model): for p in dir(self.model):
attr = getattr(self.model) attr = getattr(self.model, p)
if isinstance(attr, MyDbColumn): if isinstance(attr, MyDbColumn):
columns.append(p) columns.append(p)
......
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