def _build_choices(self):
        tree_token = u'sitetree_tree from "%s" template "%s"' % (self.tree, self.template)

        choices_str = sitetree_tree(
            Parser(None), Token(token_type=TOKEN_BLOCK, contents=tree_token)
        ).render(template.Context(current_app='admin'))

        tree_choices = [('', self.root_title)]
        for line in choices_str.splitlines():
            if line.strip():
                splitted = line.split(':::')
                tree_choices.append((splitted[0], mark_safe(splitted[1])))
        return tree_choices
Make sure we can install with the package tree.
dataset/ETHPy150Open idlesign/django-sitetree/sitetree/fields.py/TreeItemChoiceField._build_choices--crossover with--dataset/ETHPy150Open jlisee/xpkg/python/tests/fulltests.py/FullTests.test_install_with_tree_var