misc: include form_role_* variables in inspect page (#44378)

This commit is contained in:
Frédéric Péters 2020-06-23 15:41:22 +02:00
parent e8f192c991
commit f31a57e803
1 changed files with 2 additions and 2 deletions

View File

@ -174,9 +174,9 @@ class LazyFormData(LazyFormDef):
self._formdata = formdata
def inspect_keys(self):
blacklist = ('field', 'inspect_keys', 'page_no', 'role', 'formdef', 'objects')
hidden_keys = ('field', 'inspect_keys', 'page_no', 'formdef', 'objects')
for key in dir(self):
if key[0] == '_' or key in blacklist:
if key[0] == '_' or key in hidden_keys:
continue
if key == 'parent':
if self.parent: # hide parent when it's None