Commit c68b495c authored by Arnaud Fontaine's avatar Arnaud Fontaine

erp5_core: ZODB History view: Display private properties starting with '_'.

Useful for SolverType._configuration_property_dict but more generally
the whole history should be displayed as this view is used by developers.
parent 41ce6297
...@@ -117,7 +117,7 @@ def getChangeHistoryList(document, size=50, attribute_name=None): ...@@ -117,7 +117,7 @@ def getChangeHistoryList(document, size=50, attribute_name=None):
if previous_state is None: if previous_state is None:
previous_state = {} previous_state = {}
for key in current_state: for key in current_state:
if key.startswith('_') or key == 'workflow_history' or key == 'categories': if key == 'workflow_history' or key == 'categories':
continue continue
if previous_state.get(key) != current_state[key]: if previous_state.get(key) != current_state[key]:
changes[key] = current_state[key] changes[key] = current_state[key]
......
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