code: def get_root(self):
          
          if self.lft == 1:
              return self
          return get_result_class(self.__class__).objects.get(
              tree_id=self.tree_id, lft=1)
docs: :returns: the root node for the current node object.