Commit b99b2c64 authored by Jason Chen's avatar Jason Chen

fix a bug in example code

parent bc5ab4e7
......@@ -48,7 +48,7 @@ Extending BaseModelView
columns = []
for p in dir(self.model):
attr = getattr(self.model)
attr = getattr(self.model, p)
if isinstance(attr, MyDbColumn):
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