Skip to content

build(deps): bump django-treebeard from 4.7.1 to 7.0.0 - #14490

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/django-treebeard-7.0.0
Open

build(deps): bump django-treebeard from 4.7.1 to 7.0.0#14490
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/django-treebeard-7.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 10, 2026

Copy link
Copy Markdown
Contributor

Bumps django-treebeard from 4.7.1 to 7.0.0.

Changelog

Sourced from django-treebeard's changelog.

Release 7.0.0 (Aug 4, 2026)

  • Treebeard's Django admin integration (AdminTree) has been rewritten. The new implementation is significantly more performant and scalable, and implements lazy-loading for node children. Projects that had overridden TreeAdmin behaviour should consult the code for changes.
  • Added a max_depth argument to the get_tree() and get_descendants() methods, to allow control over the depth of the tree that is returned.
  • Improved the efficiency of get_descendant_count() to use a database count instead of fetching the entire queryset (for MP, NS and LT implementations).
  • Added support for Django 6.1.

Release 6.0.0 (Jul 20, 2026)

Treebeard 6.0.0 is a major release. It features a change to Treebeard's API.

The following methods that previously existing on the Node model class have now moved to the model manager instead:

  • load_bulk
  • dump_bulk
  • find_problems
  • fix_tree
  • get_tree
  • get_descendants_group_count
  • get_annotated_list_qs
  • get_annotated_list
  • get_root_nodes
  • get_first_root_node
  • get_last_root_node
  • get_children
  • get_children_count
  • get_siblings
  • get_descendants
  • get_descendant_count
  • get_first_child
  • get_last_child
  • get_first_sibling
  • get_last_sibling
  • get_prev_sibling
  • get_next_sibling
  • get_root
  • get_parent
  • get_ancestors

So, for example, code like this:

    node.get_children()
</tr></table> 

... (truncated)

Commits
  • a08ccb1 Bump to version 7.0.0
  • 1da389e Defer removal of deprecated methods.
  • 0a8e5cc Declare support for Django 6.1
  • 9e001f8 Rework TreeAdmin to support lazy-loading of children, and much more efficient...
  • 5551696 Refactor drag and drop implementation in admin
  • 2f0c708 Fix MP add_child when the target is an ancestor class of the child being added.
  • 1f93573 Add max_depth param to tree and descendant query APIs
  • 115ec2a Change sphinx theme for docs. Clean up duplicated methods in docs.
  • 736e1cd Bump to version 6
  • abd9908 Move table-level methods into managers
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [django-treebeard](https://github.com/django-treebeard/django-treebeard) from 4.7.1 to 7.0.0.
- [Changelog](https://github.com/django-treebeard/django-treebeard/blob/master/CHANGES.md)
- [Commits](django-treebeard/django-treebeard@4.7.1...7.0.0)

---
updated-dependencies:
- dependency-name: django-treebeard
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file major A high priority issue which might affect a lot of people or large parts of the codebase labels Aug 10, 2026
@cla-bot cla-bot Bot added the cla-signed CLA Bot: community license agreement signed label Aug 10, 2026
@mattiagiupponi

Copy link
Copy Markdown
Contributor

@giohappy
giohappy self-requested a review August 12, 2026 15:49

@giohappy giohappy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some methods have been moved from model to manager in version 6.0.0. It is relevant for GeoNode since it calls cls.get_tree(...) and child.get_root()
Backward-compat shims are available through 7.x, but will be removed in treebeard 8. So it still works under 7.0.0, likely with
deprecation warnings.

I suggest to migrate cls.get_tree(...) / child.get_root() to the manager form (HierarchicalKeyword.objects.get_tree(...)) to silence deprecation warnings and be ready for treebeard 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed CLA Bot: community license agreement signed dependencies Pull requests that update a dependency file major A high priority issue which might affect a lot of people or large parts of the codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants