Ignore _xxx properties in form generation

This commit is contained in:
Sybren A. Stüvel 2018-03-28 15:01:26 +02:00
parent d10bdea6c5
commit 9ee816d366

View File

@ -34,8 +34,10 @@ def iter_node_properties(node_type):
form_schema = node_type['form_schema'].to_dict()
for prop_name, prop_schema in node_schema.items():
prop_fschema = form_schema.get(prop_name, {})
if prop_name.startswith('_'):
continue
prop_fschema = form_schema.get(prop_name, {})
if not prop_fschema.get('visible', True):
continue