def _transform(self, reg, doc_type, version=None):
    'Create the Django object'
    return self.Document(id=build_id(reg, version), doc_type=doc_type, version=version, parent_id=(build_id(reg['parent'], version) if reg.get('parent') else None), tree_id=reg['tree_id'], level=reg['level'], lft=reg['left'], rght=reg['right'], label_string='-'.join(reg['label']), text=reg['text'], title=reg.get('title', ''), node_type=reg['node_type'], root=(len(reg['label']) == 1))
Create the Django object
def _transform(self, reg, doc_type, version=None):
    
    return self.Document(id=build_id(reg, version), doc_type=doc_type, version=version, parent_id=(build_id(reg['parent'], version) if reg.get('parent') else None), tree_id=reg['tree_id'], level=reg['level'], lft=reg['left'], rght=reg['right'], label_string='-'.join(reg['label']), text=reg['text'], title=reg.get('title', ), node_type=reg['node_type'], root=(len(reg['label']) == 1))