sitetree/admin.py
def get_tree(self, request, tree_id, item_id=None):
        """Fetches Tree for current or given TreeItem."""
        if tree_id is None:
            tree_id = self.get_object(request, item_id).tree_id
        self.tree = MODEL_TREE_CLASS._default_manager.get(pk=tree_id)
        self.tree.verbose_name_plural = self.tree._meta.verbose_name_plural
        self.tree.urls = _TREE_URLS
        return self.tree
def get_tree(self, request, tree_id, item_id=None):
        if tree_id is None:
            tree_id = self.get_object(request, item_id).tree_id
        self.tree = MODEL_TREE_CLASS._default_manager.get(pk=tree_id)
        self.tree.verbose_name_plural = self.tree._meta.verbose_name_plural
        self.tree.urls = _TREE_URLS
        return self.tree
def get_tree ( self , request , tree_id , item_id = None ) : if tree_id is None : tree_id = self . get_object ( request , item_id ) . tree_id self . tree = MODEL_TREE_CLASS . _default_manager . get ( pk = tree_id ) self . tree . verbose_name_plural = self . tree . _meta . verbose_name_plural self . tree . urls = _TREE_URLS return self . tree
Fetches Tree for current or given TreeItem.
Fetches Tree for current or given TreeItem .