def get_parent(self):
        """
        Get the parent model. Returns None if current element is the root element.
        """
        if self.parent_id:
            for model in CascadeModelBase._get_cascade_elements():
                try:
                    return model.objects.get(id=self.parent_id)
                except __HOLE__:
                    pass
dataset/ETHPy150Open jrief/djangocms-cascade/cmsplugin_cascade/models_base.py/CascadeModelBase.get_parent