

def get_form_helper(self):
    helper = super(RevisionView, self).get_form_helper()
    diff_fields = {
        
    }
    version_data = self.version.field_dict
    for f in self.opts.fields:
        if (f.value_from_object(self.org_obj) != version_data.get(f.name, None)):
            diff_fields[f.name] = self.detail.get_field_result(f.name).val
    for (k, v) in diff_fields.items():
        version_data[k].wrap(DiffField, orgdata=v)
    return helper

dataset/ETHPy150Open sshwsfc/xadmin/xadmin/plugins/xversion.py RevisionView.get_form_helper/VarMisuse@111/136 `helper`->`version_data`