Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 12, 2026

Bumps django-polymorphic from 3.1.0 to 4.9.0.

Release notes

Sourced from django-polymorphic's releases.

v4.9.0

Serialization Fix Release

dumpdata should now work in all contexts.

What's Changed

Full Changelog: jazzband/django-polymorphic@v4.8.0...v4.9.0

v4.8.0

What's Changed

Full Changelog: jazzband/django-polymorphic@v4.7.0...v4.8.0

v4.7.0

Admin bug fixes and docs.

What's Changed

Full Changelog: jazzband/django-polymorphic@v4.6.0...v4.7.0

v4.6.0

ORM Bug Fix Release

This release fixes a number of long standing bugs with respect to query behavior and inheritance. Most notably:

  1. The queryset iterator and get_real_instance will attempt to fetch the correct type even if the polymorphic content type id is wrong. This can happen in legitimate work flows in signal handling during deletes as the child tables are deleted in order.
  2. The parent/child table forward/reverse onetoone fields are now implemented as descriptors subclassed from the base django descriptors. This fixes a number of bugs wrt to custom primary keys and primary keys of different values within one model's set of parent/child tables.

What's Changed

... (truncated)

Changelog

Sourced from django-polymorphic's changelog.

v4.9.0 (2026-01-09)

.. note::

This update may generate new migrations for your polymorphic models, similar to the following. This is ok and an expected side effect of fixing [#815](https://github.com/jazzband/django-polymorphic/issues/815) <https://github.com/jazzband/django-polymorphic/issues/815>_

.. code-block:: python

  migrations.AlterModelOptions(
      name='modelname',
      options={},
  )
  • Fixed PolymorphicModel.base_manager is the same as default_manager when custom default manager is supplied. <https://github.com/jazzband/django-polymorphic/issues/815>_
  • Fixed Use non-polymorphic managers for all invocations of dumpdata <https://github.com/jazzband/django-polymorphic/pull/814>_
  • Documented Fixture usage <https://github.com/jazzband/django-polymorphic/pull/791>_

v4.8.0 (2026-01-08)

  • Fixed PolymorphicFormSetChild overrides form exclude <https://github.com/jazzband/django-polymorphic/issues/578>_
  • Fixed Issue with polymorphic_ctype when populating polymorphic inline formsets. <https://github.com/jazzband/django-polymorphic/issues/549>_
  • Fixed Nested polymorphic_inline_formsets gives AttributeError: 'NoneType' object has no attribute 'get_real_instance_class' <https://github.com/jazzband/django-polymorphic/issues/363>_

v4.7.0 (2026-01-07)

Fixed a few outstanding admin bugs, updated documentation and added more admin tests for things like m2m relationships.

  • Documented How to handle non-admin polymorphic forms? <https://github.com/jazzband/django-polymorphic/issues/346>_
  • Fixed Admin: add view popup breaks if initial submit has validation error <https://github.com/jazzband/django-polymorphic/issues/612>_
  • Fixed Filters are not preserved in polymorphic parent admin <https://github.com/jazzband/django-polymorphic/issues/356>_
  • Fixed Admin change form doesn't preserve changelist filter <https://github.com/jazzband/django-polymorphic/issues/125>_

v4.6.0 (2026-01-05)

The release fixes longstanding bugs with respect to expected ORM behavior. For a complete list of changes see the v4.6.0 release <https://github.com/jazzband/django-polymorphic/releases/tag/v4.6.0>_.

  • Fixed get_real_instance() should also gracefully retry parents on failure (best effort) <https://github.com/jazzband/django-polymorphic/issues/784>_
  • Fixed polymorphic_primary_key_name no longer points to base classes polymorphic field <https://github.com/jazzband/django-polymorphic/issues/758>_
  • Fixed create_from_super needs to run atomically. <https://github.com/jazzband/django-polymorphic/issues/744>_
  • Fixed Support polymorphic models that have different pk fields/values at different levels of the hierarchy. <https://github.com/jazzband/django-polymorphic/issues/686>_
  • Fixed Issue with .delete(keep_parents=True) <https://github.com/jazzband/django-polymorphic/issues/645>_
  • Fixed PolymorphicChildModelAdmin with show_in_index=False in Django Admin with nav_sidebar <https://github.com/jazzband/django-polymorphic/issues/497>_

... (truncated)

Commits
  • aa873e3 Merge pull request #817 from bckohan/master
  • adb08d0 bump version, update changelog
  • 62c51f2 Merge pull request #791 from JohananOppongAmoateng/513
  • 46b2cac issued doc corrections based on #814
  • 2fb8a78 docs: Add comprehensive fixture support documentation
  • e273720 Merge pull request #814 from bckohan/dumpdata
  • bba7e63 Fix dumpdata usage for polymorphic models and add comprehensive tests.
  • c112d2a Merge pull request #816 from bckohan/managers
  • bc6ab71 fix #815
  • 5b76a07 Merge pull request #756 from JohananOppongAmoateng/578
  • 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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-polymorphic](https://github.com/jazzband/django-polymorphic) from 3.1.0 to 4.9.0.
- [Release notes](https://github.com/jazzband/django-polymorphic/releases)
- [Changelog](https://github.com/jazzband/django-polymorphic/blob/master/docs/changelog.rst)
- [Commits](jazzband/django-polymorphic@v3.1...v4.9.0)

---
updated-dependencies:
- dependency-name: django-polymorphic
  dependency-version: 4.9.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@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 Jan 12, 2026
@cla-bot cla-bot bot added the cla-signed CLA Bot: community license agreement signed label Jan 12, 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 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.

1 participant