From 9ee816d36642c85703d5274ebb0a22d477685310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 28 Mar 2018 15:01:26 +0200 Subject: [PATCH] Ignore _xxx properties in form generation --- pillar/web/nodes/forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pillar/web/nodes/forms.py b/pillar/web/nodes/forms.py index 243d7b1a..211fee1e 100644 --- a/pillar/web/nodes/forms.py +++ b/pillar/web/nodes/forms.py @@ -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