Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@dependabot
Copy link

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

Bumps django-polymorphic from 4.1.0 to 4.8.0.

Release notes

Sourced from django-polymorphic's releases.

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.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>_
  • Fixed ForeignKeyViolation when trying to save an entity when using a non-default db <https://github.com/jazzband/django-polymorphic/issues/486>_
  • Fixed Content types pulled from wrong database when using database routers <https://github.com/jazzband/django-polymorphic/issues/446>_
  • Fixed Copying Polymorphic objects for below the first level not working <https://github.com/jazzband/django-polymorphic/issues/414>_
  • Fixed Getting a specific element from a queryset in an post_delete returns None <https://github.com/jazzband/django-polymorphic/issues/347>_
  • Fixed Reverse related object descriptor is overwritten on class <https://github.com/jazzband/django-polymorphic/issues/71>_

v4.3.1, v4.4.2, v4.5.2 (2026-01-01)

  • Fixed Significant performance regression on polymorphic queryset iteration <https://github.com/jazzband/django-polymorphic/pull/781>_

v4.5.1 (2025-12-24)

  • Fixed 4.5.0 generates a lot of migrations on my project <https://github.com/jazzband/django-polymorphic/pull/759>_
  • Fixed Annotations with F <https://github.com/jazzband/django-polymorphic/pull/755>_
  • Fixed show_in_index=False visibility in admin sites and sidebar <https://github.com/jazzband/django-polymorphic/pull/760>_

v4.5.0 (2025-12-22)

... (truncated)

Commits
  • 5b76a07 Merge pull request #756 from JohananOppongAmoateng/578
  • 5b03a94 move test models into models, bump version and update change log
  • 7135d0c fix test for fix for issue #363
  • 39aade5 run ruff, remake migrations
  • 8f0e8ca fix tests
  • 39276ea fix coverage
  • 0f02290 fix coverage
  • f4d0bd9 fix Nested polymorphic_inline_formsets gives AttributeError: 'NoneType' objec...
  • e4df89d fix Issue with polymorphic_ctype when populating polymorphic inline formsets
  • e780a94 fix PolymorphicFormSetChild overrides form exclude
  • 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 4.1.0 to 4.8.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@v4.1.0...v4.8.0)

---
updated-dependencies:
- dependency-name: django-polymorphic
  dependency-version: 4.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Jan 9, 2026

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant