django-commons/django-polymorphic
Improved Django model inheritance with automatic downcasting observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 98
- Release rhythm 95
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 3.0
- age_days: 5681
- days_rel: 32
- days_push: 16
- n_releases_24m: 31
Adoption not part of the score
1833 stars · 304 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Django library providing seamless polymorphic model inheritance with automatic downcasting, so queries on a base model return instances of the correct subclass. It integrates with the Django ORM, admin, and formsets.
Use cases
- query a base Django model and get subclass instances back
- implement polymorphic model inheritance in Django
- manage inherited models in the Django admin
- build formsets for Django model hierarchies
- avoid manual downcasting of Django model query results
When to choose
- you use Django's ORM and need inherited models returned as their concrete classes
- you want polymorphic models integrated with Django admin and formsets
- you need a mature, well-tested solution for Django model inheritance
When to avoid
- you don't use Django or its ORM
- you need database-level table inheritance rather than ORM-level downcasting
- query performance is critical, since polymorphic queries add joins and overhead
Facets
library · maturity active
orm database web-development backend databases python django model-inheritance polymorphism downcasting django-admin django-formsets web-server
2 sources
- readme: https://github.com/django-commons/django-polymorphic · fetched 2026-08-28 · 1b19d9cd703f
- registry_pypi: https://pypi.org/pypi/django-polymorphic/json · fetched 2026-08-29 · 856d594a2dc1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| django-commons/django-polymorphic | main | 97 |
For agents
markdown · JSON · MCP: product_card(name="django-commons/django-polymorphic")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem