From c86b08b23f4ba068b9955e3544e2c07a4f5b42c7 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 31 Mar 2020 16:21:27 +0200 Subject: [PATCH 3/3] misc: do not show form_parent when it's None (#39803) --- wcs/variables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcs/variables.py b/wcs/variables.py index 378540f9..faef6c34 100644 --- a/wcs/variables.py +++ b/wcs/variables.py @@ -213,7 +213,8 @@ class LazyFormData(LazyFormDef): if key[0] == '_' or key in blacklist: continue if key == 'parent': - yield key, False # = recurse + if self.parent: + yield key, False # = recurse else: yield key -- 2.24.0