Commit e6a06c6f authored by Nitish Rathi's avatar Nitish Rathi

skip multi-column field instead of just warning

Simply warning doesn't actually fix any problem, but replaces the earlier TypeError with another TypeError. So, continue in case of a multi-column field to skip it.
parent 402f24e6
......@@ -393,6 +393,7 @@ class ModelView(BaseModelView):
if len(filtered) > 1:
warnings.warn('Can not convert multiple-column properties (%s.%s)' % (self.model, p.key))
continue
column = filtered[0]
else:
......
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