Skip to content

Conversation

@didacta
Copy link

@didacta didacta commented Jan 13, 2026

Replaces private _get_inheritance_relation_fields_and_models() API with
Django's public model._meta.parents.keys().

Context

django-polymorphic 4.6 removed/changed the private method this code depended on.
See: jazzband/django-polymorphic@v4.5.1...v4.6.0

Related issue: #278

…ic API

Use model._meta.parents.keys() instead of the private method to get
parent model classes. This is cleaner and more stable across Django versions.
@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.40%. Comparing base (f50dee5) to head (945ad9b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #279      +/-   ##
==========================================
- Coverage   78.97%   75.40%   -3.57%     
==========================================
  Files          20       20              
  Lines        2587     2586       -1     
==========================================
- Hits         2043     1950      -93     
- Misses        544      636      +92     
Flag Coverage Δ
javascript 74.92% <ø> (-4.20%) ⬇️
python 76.19% <100.00%> (-2.56%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
nested_admin/polymorphic.py 75.51% <100.00%> (-2.05%) ⬇️

... and 9 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f50dee5...945ad9b. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@djmaze
Copy link

djmaze commented Jan 21, 2026

This does not fix the problem completely for me. I needed to change another line, see 254b04d

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants