'Returns a child object which inherits from self, if exists'

def get_related_object(self):

    try:
        obj_name = re.match('.*\\.(?P<name>\\w+)$', self.object_type).group('name')
        return getattr(self, obj_name.lower())
    except Exception:
        return None
