Skip to content

build(deps): bump django-mptt from 0.16.0 to 0.22.0 - #14797

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

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/django-mptt-0.22.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps django-mptt from 0.16.0 to 0.22.0.

Changelog

Sourced from django-mptt's changelog.

========== Change log

Next version

0.22 (2026-11-21)

  • Added support for Python 3.15 (with Django 6.1 and newer).
  • MPTTModelAdmin.get_actions() accepts Django 6.1's action_location argument and keeps the Action object for delete_selected, which silences Django's deprecation warnings for overriding get_actions() and unpacking action tuples.
  • MPTTModel.delete() no longer shifts the tree when Django refuses the delete because of a PROTECT or RESTRICT foreign key; closing the gap and deleting now happen in one transaction (#855).
  • MPTTModel.save() now inserts a copy made with pk = None and _state.adding = True as a new node instead of writing it over the original's tree position (#856). Preset tree fields of new nodes are only kept when they were set up by insert_node() or insert_at().
  • get_cached_trees() no longer scans the whole parent level for every node, which made it quadratic for wide trees (#857).
  • TreeManager.rebuild() and partial_rebuild() only write nodes whose tree fields actually change (#858).

0.21.1 (2026-11-03)

  • TreeRelatedFieldListFilter now reuses Django's RelatedFieldListFilter.queryset() instead of an outdated copy of it, which fixes the filter on Django 5 and newer (#854).

0.21 (2026-10-27)

  • Fixed tree methods of proxy models with a filtering custom manager (e.g. get_queryset().filter(level=2)) only seeing the filtered rows: e.g. get_root() raised DoesNotExist, and inserting nodes through such a manager corrupted the tree. Tree operations now use an unfiltered tree manager bound to the proxy model, so they still return proxy instances (fixes #853, regression in 0.19).
  • TreeManager.db_manager() now passes the database on to the manager that proxy and multi-table inheritance models delegate tree operations to.
  • Tree writes (inserting, moving and deleting nodes, rebuild(), partial_rebuild(), build_tree_nodes()) now always see every row, even if the model's tree manager is a TreeManager subclass which filters get_queryset(). Previously, hidden nodes could lead to crashes or a corrupted tree, e.g. duplicate tree ids or child nodes left behind

... (truncated)

Commits
  • 66b69b5 django-mptt 0.22
  • 99df231 Support action_location in MPTTModelAdmin.get_actions()
  • 2008ba7 Add Python 3.15 support
  • 7d93ba3 Apply pre-commit formatting
  • b7f9794 Restore the unreleased heading and add PR numbers to the changelog
  • e26958a Merge pull request #858 from patrick-immometrica/perf-rebuild-unchanged
  • 75a0119 Merge pull request #857 from patrick-immometrica/perf-cached-trees
  • 925d0b1 Merge pull request #856 from patrick-immometrica/fix-copy-insert
  • 7d360f6 Merge pull request #855 from patrick-immometrica/fix-protected-delete
  • f703ef3 Remove unused imports from the admin module
  • 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-mptt](https://github.com/django-mptt/django-mptt) from 0.16.0 to 0.22.0.
- [Changelog](https://github.com/django-mptt/django-mptt/blob/main/CHANGELOG.rst)
- [Commits](django-mptt/django-mptt@0.16...0.22)

---
updated-dependencies:
- dependency-name: django-mptt
  dependency-version: 0.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file minor A low priority issue which might affect only some users and /or not the main functionality labels Nov 30, 2026
@cla-bot cla-bot Bot added the cla-signed CLA Bot: community license agreement signed label Nov 30, 2026
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 minor A low priority issue which might affect only some users and /or not the main functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants