Commit 7264cb7d authored by Serge S. Koval's avatar Serge S. Koval

Fixed mongoengine form_exclude_columns support

parent 4955d10d
...@@ -189,7 +189,7 @@ def get_form(model, converter, ...@@ -189,7 +189,7 @@ def get_form(model, converter,
properties = ((p, find(p)) for p in only) properties = ((p, find(p)) for p in only)
elif exclude: elif exclude:
properties = (p for p in properties in p[0] not in exclude) properties = (p for p in properties if p[0] not in exclude)
# Create fields # Create fields
field_dict = {} field_dict = {}
......
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