NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #2525 most downloaded on PyPI
Seamless polymorphic inheritance for Django models.
Latest stable
4.11.7
Last release 3 months ago
01 Aug 2026
Release timing varies
gaps range from 8 days to 2 months
Nearly every release is documented
notes for 56 of 56 stable releases
11 versions withdrawn
withdrawn after publishing
16 years old
70 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
support django 6.1 by @bckohan in https://github.com/django-commons/django-polymorphic/pull/909
Full Changelog: https://github.com/django-commons/django-polymorphic/compare/v4.11.6...v4.11.7
Support Django 6.1
Fixed Regression: A recent update in the save method removed sending kwargs to the super.save method breaking the save function
Bump the gha-updates group with 6 updates by @dependabot[bot] in https://github.com/django-commons/django-polymorphic/pull/901
KeyError when accessing fields deferred by base manager by @chrisimcevoy in https://github.com/django-commons/django-polymorphic/pull/907Full Changelog: https://github.com/django-commons/django-polymorphic/compare/v4.11.5...v4.11.6
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Zizmor fixes by @bckohan in https://github.com/django-commons/django-polymorphic/pull/889
Full Changelog: https://github.com/django-commons/django-polymorphic/compare/v4.11.4...v4.11.5
Fixed PolymorphicChildModelAdmin redirects to the root model list view instead of the first PolymorphicParentModelAdmin
Small admin behavior change: When both the root model and an intermediate subclass have a PolymorphicParentModelAdmin registered, post-save now redirects to the most-derived (nearest) parent admin rather than the root’s.
Bump the gha-updates group with 6 updates by @dependabot[bot] in https://github.com/django-commons/django-polymorphic/pull/888
Full Changelog: https://github.com/django-commons/django-polymorphic/compare/v4.11.3...v4.11.4
Fixed pylint issue starting in version 4.11.0: E1111 assignment-from-no-return
Bump requests from 2.32.5 to 2.33.0 by @dependabot[bot] in https://github.com/django-commons/django-polymorphic/pull/877
Full Changelog: https://github.com/django-commons/django-polymorphic/compare/v4.11.2...v4.11.3
django-polymorphic has a new home at the django-commons organization!
This was necessary because Jazzband is sunsetting . Jazzband was a great home that facilitated maintainership transfer of this package. We are extremely thankful for all of jezdez’s work over the years running the Jazzband community.
We limited publishing access to restrict our supply chain vulnerability surface. If you were a former contributor/maintainer of this project and wish to contribute again please join django-commons and let us know.
remove unnecessary mark_safe, potentially vulnerable to xss by @bckohan in https://github.com/jazzband/django-polymorphic/pull/873
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.11.1...v4.11.2
Add typed classifier.
Remove unnecessary mark_safe() from admin context variables .
Significant security tightening of CI pipelines including security focused static analysis tools: zizmor, CodeQL and bandit.
Fix for Release 4.11 causes UPDATE query to be routed to reader DB
Fix for Release 4.11 causes UPDATE query to be routed to reader DB
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.11.0...v4.11.1
feat: add comprehensive type annotations by @huynguyengl99 in https://github.com/jazzband/django-polymorphic/pull/856
Typing support has been added!
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.10.5...v4.11.0
Fix a bug where in some Django bootstrapping scenarios related field accessors to PolymorphicModels would not be polymorphic
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.10.4...v4.10.5
Document model-bakery integration and test considerations by @bckohan in https://github.com/jazzband/django-polymorphic/pull/849
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.10.3...v4.10.4
fix base_manager resolution by @bckohan in https://github.com/jazzband/django-polymorphic/pull/846
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.10.2...v4.10.3
Fix wheel changelog url by @bckohan in https://github.com/jazzband/django-polymorphic/pull/843
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.10.1...v4.10.2
Polymorphic serializer validated data is now updated with the child data by @bckohan in https://github.com/jazzband/django-polymorphic/pull/841
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.10.0...v4.10.1
Fixed Django-polymorphic does not update the PolymorphicSerializer’s validated_data after running the child’s validation method
This release is primarily an integrations release. Many tests were added for the documented intergrations and a few bugs were fixed. Some warnings wer
This release is primarily an integrations release. Many tests were added for the documented intergrations and a few bugs were fixed. Some warnings were converted to system checks. The two most notable changes are:
The django-rest-polymorphic package is now part of django-polymorphic. (Thank you @denisorehovsky!!)
In queries that need content types that are not cached those fetches are now embedded as subqueries. This reduces the total number of queries needed but most importantly it eliminates a class of errors that could happen if Manager/QuerySet methods that should not but do generate database queries are called before models are loaded (e.g. get_queryset()).
[!TIP] All you need to do to drop your dependency on django-rest-polymorphic is to update the import path for
PolymorphicSerializerfromrest_polymorphic.serializersto polymorphic.contrib.drf.serializers
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.9.0...v4.10.0
This release is primarily an integrations release. Many tests were added for the documented intergrations and a few bugs were fixed. Some warnings were converted to system checks. The two most notable changes are:
The django-rest-polymorphic package is now part of django-polymorphic .
In queries that need content types that are not cached those fetches are now embedded as subqueries . This reduces the total number of queries needed but most importantly it eliminates a class of errors that could happen if Manager/QuerySet methods that should not but do generate database queries are called before models are loaded (e.g. get_queryset()).
Implemented Bring django-rest-polymorphic into this package.
Tip
django-rest-polymorphic is now part of django-polymorphic . You must update your import paths from rest_polymorphic.serializers to polymorphic.contrib.drf.serializers .
Fixed Guardian contenttype integraton hook is extremely brittle
Fixed Models defined after load break inheritance utility caches
Fixed get_queryset() results in db queries for proxy models
Implemented System check error for PolymorphicManager marked as use_in_migrations
Implemented Manager warnings should be system checks instead.
Fix a bug where in some Django bootstrapping scenarios related field accessors to PolymorphicModels would not be polymorphic
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.9.1...v4.9.2
Fixed Bad warning messages polymorphic.W001 and polymorphic.W002 when deriving from PolymorphicModel
Fixed Unexpected return type of polymorphic data since 4.9.1
Fixed related item missing
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.9.0...v4.9.1
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.9.0...v4.9.1
dumpdata should now work in all contexts.
dumpdata should now work in all contexts.
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.8.0...v4.9.0
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
migrations . AlterModelOptions ( name = 'modelname' , options = {}, )
Fixed PolymorphicModel.base_manager is the same as default_manager when custom default manager is supplied.
Fixed Use non-polymorphic managers for all invocations of dumpdata
Documented Fixture usage
bump version, update changelog by @bckohan in https://github.com/jazzband/django-polymorphic/pull/809
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.7.0...v4.8.0
Fixed PolymorphicFormSetChild overrides form exclude
Fixed Issue with polymorphic_ctype when populating polymorphic inline formsets.
Fixed Nested polymorphic_inline_formsets gives AttributeError: ‘NoneType’ object has no attribute ‘get_real_instance_class’
This release fixes a number of long standing bugs with respect to query behavior and inheritance. Most notably:
This release fixes a number of long standing bugs with respect to query behavior and inheritance. Most notably:
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.5.1...v4.6.0
The release fixes longstanding bugs with respect to expected ORM behavior. For a complete list of changes see the v4.6.0 release .
Fixed get_real_instance() should also gracefully retry parents on failure (best effort)
Fixed polymorphic_primary_key_name no longer points to base classes polymorphic field
Fixed create_from_super needs to run atomically.
Fixed Support polymorphic models that have different pk fields/values at different levels of the hierarchy.
Fixed Issue with .delete(keep_parents=True)
Fixed PolymorphicChildModelAdmin with show_in_index=False in Django Admin with nav_sidebar
Fixed ForeignKeyViolation when trying to save an entity when using a non-default db
Fixed Content types pulled from wrong database when using database routers
Fixed Copying Polymorphic objects for below the first level not working
Fixed Getting a specific element from a queryset in an post_delete returns None
Fixed Reverse related object descriptor is overwritten on class
* Fixed #781 Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.5.1...v4.5.2
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.5.1...v4.5.2
fix annotate with F by @JohananOppongAmoateng in https://github.com/jazzband/django-polymorphic/pull/755
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.5.0...v4.5.1
Fixed 4.5.0 generates a lot of migrations on my project
Fixed Annotations with F
Fixed show_in_index=False visibility in admin sites and sidebar
Fix longstanding issues with polymorphic deletion!
Fix longstanding issues with polymorphic deletion!
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.4.1...v4.5.0
The release fixes longstanding bugs with respect to deletion of polymorphic models.
Warning
This version has a bug that generates unnecessary migrations - use 4.5.1 instead!
Implemented Deletion fixes This release fixes the longstanding polymorphic deletion bug. The fix should be transparent and not generate new migrations files. If you experience any issues, please report them.
Fixed AttributeError Using .alias() On Polymorphic Querysets
* Fixed #781 Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.4.1...v4.4.2
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.4.1...v4.4.2
fix: install just link by @niltonpimentel02 in https://github.com/jazzband/django-polymorphic/pull/736
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.4.0...v4.4.1
remove dead code by @bckohan in https://github.com/jazzband/django-polymorphic/pull/692
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.3.0...v4.4.0
Implemented Add create_from_super method and test
Implemented Move model definition errors to system checks
Fixed Fix ordering of stacked inline admin forms on add.
Fixed Change model definition errors to be system checks
Fixed Replace deepcopy of the Q object
* Fixed #781 Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.3.0...v4.3.1
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.3.0...v4.3.1
Fixed Significant performance regression on polymorphic queryset iteration
Support Q expressions that contain subquery expressions by @CelestialGuru in https://github.com/jazzband/django-polymorphic/pull/572
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.2.0...v4.3.0
Fixed Resolve primary key name correctly.
Implemented Include get_child_inlines() hook in stacked inline admin forms.
Fixed multi-database support in inheritance accessors.
Fixed Caching in inheritance accessor functions
Fixed Foreign key resolves to parent class when using abstract models
Fixed Support Q expressions that contain subquery expressions
Fix use of is and is not vs. == by @nlsfnr in https://github.com/jazzband/django-polymorphic/pull/634
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.1.0...v4.2.0
Fixed The objects which were transmogrified aren’t initialized correctly if they implement init method.
Implemented Defer to chunk_size parameter on .iterators for fetching get_real_instances()
Fixed Show full admin context (breadcrumb and logout nav) in model type selection admin form
Fixed Issue with Autocomplete Fields in StackedPolymorphicInline.Child Inline
Support Python 3.14 and Django 6.0, drop support for EOL python 3.9, Django 3.2, 4.0, 4.1 and 5.0.
Modernized package management with new build, test, docs tooling and improved CI .
PolymorphicQuerySet: Prevent NoneType error in test___lookup by @hll1682003 in https://github.com/jazzband/django-polymorphic/pull/621
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v4.0.0...v4.1.0
Fixed a bug on Django 5 where aggregation queries could result in None-type errors
Use css variables in the admin css
Removed usage of deprecated pkg_resources by @sliverc in https://github.com/jazzband/django-polymorphic/pull/541
Full Changelog: https://github.com/jazzband/django-polymorphic/compare/v3.1...v4.0.0
This version marks the first release under the jazzband repo. Package is not compatible with Django version 4
There were no breaking changes in this major release
This was the first release under Jazzband .
There were many updates modernizing the package and incorporating Jazzband standards:
Updates to documentation
Formatting and linting with ruff
Moving to GHA from Travis CI
Switch to pytest
Changes that touched the core package code were:
Remove legacy Django/python version checks
Replace string formats with f-strings
as of Python 3.12 package_resources was removed. To get prior releases to work on >3.12 you would also need to install setuptools .
Fixed multi field lines do not render in the admin
Fixed dark mode rendering in the polymorphic admin
- Added support for Django 4.0.
Added support for Django 4.0.
Fixed crash when the admin “add type” view has no choices; will show a permission denied.
Fixed missing locale folder in sdist.
Fixed missing QuerySet.bulk_create(.., ignore_conflicts=True) parameter support.
Fixed FilteredRelation support.
Fixed supporting class keyword arguments in model definitions for init_subclass() .
Fixed including polymorphic.tests.migrations in the sdist.
Fixed non-polymorphic parent handling, which has no _base_objects .
Fixed missing widgets support for modelform_factory() .
Fixed has_changed handling for polymorphic_ctype_id due to implicit str to int conversions.
Fixed Q object handling when lists are used (e.g. in django-advanced-filters ).
Fixed Django Admin support when using a script-prefix.
Many thanks to everyone providing clear pull requests!
- Dropped support for python 2.X
Support for Django 3.X
Dropped support for python 2.X
A lot of various fixes and improvements by various authors. Thanks a lot!
- Fix PolymorphicInlineModelAdmin media jQuery include for Django 2.0+
Fix PolymorphicInlineModelAdmin media jQuery include for Django 2.0+
- Fixed admin import error due to isort changes.
Fixed admin import error due to isort changes.
- Changed .non_polymorphic() , to use a different iterable class that completely circumvent polymorphic.
Added Django 2.2 support.
Changed .non_polymorphic() , to use a different iterable class that completely circumvent polymorphic.
Changed SQL for instance_of filter: use IN statement instead of OR clauses.
Changed queryset iteration to implement prefetch_related() support.
Fixed Django 3.0 alpha compatibility.
Fixed compatibility with current django-extra-views in polymorphic.contrib.extra_views .
Fixed prefetch_related() support on polymorphic M2M relations.
Fixed model subclass ___ selector for abstract/proxy models.
Fixed model subclass ___ selector for models with a custom OneToOneField(parent_link=True) .
Fixed unwanted results on calling queryset.get_real_instances([]) .
Fixed unwanted TypeError exception when PolymorphicTypeInvalid should have raised.
Fixed hiding the add-button of polymorphic lines in the Django admin.
Reformatted all files with black
- Fixed admin crash for Django 2.1 with missing use_required_attribute .
Fixed admin crash for Django 2.1 with missing use_required_attribute .
- Fixed manager inheritance behavior for Django 1.11, by automatically enabling Meta.manager_inheritance_from_future if it’s not defined. This restore
Fixed manager inheritance behavior for Django 1.11, by automatically enabling Meta.manager_inheritance_from_future if it’s not defined. This restores the manager inheritance behavior that django-polymorphic 1.3 provided for Django 1.x projects.
Fixed internal base_objects usage.
- Deprecated the base_objects manager. Use objects.non_polymorphic() instead.
Fixed manager inheritance detection for Django 1.11.
It’s recommended to use Meta.manager_inheritance_from_future so Django 1.x code also inherit the PolymorphicManager in all subclasses. Django 2.0 already does this by default.
Deprecated the base_objects manager. Use objects.non_polymorphic() instead.
Optimized detection for dumpdata behavior, avoiding the performance hit of getattribute() .
Fixed test management commands
- BACKWARDS INCOMPATIBILITY: Dropped Django 1.8 and 1.10 support.
BACKWARDS INCOMPATIBILITY: Dropped Django 1.8 and 1.10 support.
BACKWARDS INCOMPATIBILITY: Removed old deprecated code from 1.0, thus:
Import managers from polymorphic.managers (plural), not polymorphic.manager .
Register child models to the admin as well using @admin.register() or admin.site.register() , as this is no longer done automatically.
Added Django 2.0 support.
Also backported into 1.3.1:
Added PolymorphicTypeUndefined exception for incomplete imported models. When a data migration or import creates an polymorphic model, the polymorphic_ctype_id field should be filled in manually too. The polymorphic.utils.reset_polymorphic_ctype function can be used for that.
Added PolymorphicTypeInvalid exception when database was incorrectly imported.
Added polymorphic.utils.get_base_polymorphic_model() to find the base model for types.
Using base_model on the polymorphic admins is no longer required, as this can be autodetected.
Fixed manager errors for swappable models.
Fixed deleteText of |as_script_options template filter.
Fixed .filter(applabel__ModelName___field=...) lookups.
Fixed proxy model support in formsets.
Fixed error with .defer and child models that use the same parent.
Fixed error message when polymorphic_ctype_id is null.
Fixed fieldsets recursion in the admin.
Improved polymorphic.utils.reset_polymorphic_ctype() to accept models in random ordering.
Fix fieldsets handling in the admin ( declared_fieldsets is removed since Django 1.9)
Backported various fixes from 2.x to support older Django versions:
Backported various fixes from 2.x to support older Django versions:
Added PolymorphicTypeUndefined exception for incomplete imported models. When a data migration or import creates an polymorphic model, the polymorphic_ctype_id field should be filled in manually too. The polymorphic.utils.reset_polymorphic_ctype function can be used for that.
Added PolymorphicTypeInvalid exception when database was incorrectly imported.
Added polymorphic.utils.get_base_polymorphic_model() to find the base model for types.
Using base_model on the polymorphic admins is no longer required, as this can be autodetected.
Fixed manager errors for swappable models.
Fixed deleteText of |as_script_options template filter.
Fixed .filter(applabel__ModelName___field=...) lookups.
Fixed proxy model support in formsets.
Fixed error with .defer and child models that use the same parent.
Fixed error message when polymorphic_ctype_id is null.
Fixed fieldsets recursion in the admin.
Improved polymorphic.utils.reset_polymorphic_ctype() to accept models in random ordering.
Fix fieldsets handling in the admin ( declared_fieldsets is removed since Django 1.9)
- BACKWARDS INCOMPATIBILITY: Dropped Django 1.4, 1.5, 1.6, 1.7, 1.9 and Python 2.6 support. Only official Django releases (1.8, 1.10, 1.11) are suppor…
BACKWARDS INCOMPATIBILITY: Dropped Django 1.4, 1.5, 1.6, 1.7, 1.9 and Python 2.6 support. Only official Django releases (1.8, 1.10, 1.11) are supported now.
Allow expressions to pass unchanged in .order_by()
Fixed Django 1.11 accessor checks (to support subclasses of ForwardManyToOneDescriptor , like ForwardOneToOneDescriptor )
Fixed polib syntax error messages in translations.
- Fixed PolymorphicInlineModelAdmin to explictly exclude polymorphic_ctype .
Django 1.11 support.
Fixed PolymorphicInlineModelAdmin to explictly exclude polymorphic_ctype .
Fixed Python 3 TypeError in the admin when preserving the query string.
Fixed Python 3 issue due to force_unicode() usage instead of force_text() .
Fixed z-index attribute for admin menu appearance.
- Added class based formset views in polymorphic/contrib/extra_views .
Added class based formset views in polymorphic/contrib/extra_views .
Added helper function polymorphic.utils.reset_polymorphic_ctype() . This eases the migration old existing models to polymorphic.
Fixed Python 2.6 issue.
Fixed Django 1.6 support.
Nothing published for this version
Nothing published for this version
- Added helper function for django-guardian ; add GUARDIAN_GET_CONTENT_TYPE = 'polymorphic.contrib.guardian.get_polymorphic_base_content_type' to the
Added helper function for django-guardian ; add GUARDIAN_GET_CONTENT_TYPE = 'polymorphic.contrib.guardian.get_polymorphic_base_content_type' to the project settings to let guardian handles inherited models properly.
Fixed polymorphic_modelformset_factory() usage.
Fixed Python 3 bug for inline formsets.
Fixed CSS for Grappelli, so model choice menu properly overlaps.
Fixed ParentAdminNotRegistered exception for models that are registered via a proxy model instead of the real base model.
- Fixed compatibility with manager changes in Django 1.10.1
Fixed compatibility with manager changes in Django 1.10.1
- Added admin inline support for polymorphic models.
Added Django 1.10 support.
Added admin inline support for polymorphic models.
Added formset support for polymorphic models.
Added support for polymorphic queryset limiting effects on proxy models .
Added support for multiple databases with the .using() method and using=.. keyword argument.
Fixed modifying passed Q() objects in place.
Note
This version provides a new method for registering the admin models. While the old method is still supported, we recommend to upgrade your code. The new registration style improves the compatibility in the Django admin.
Register each PolymorphicChildModelAdmin with the admin site too.
The child_models attribute of the PolymorphicParentModelAdmin should be a flat list of all child models. The (model, admin) tuple is obsolete.
Also note that proxy models will now limit the queryset too.
Fix formset empty-form display when there are form errors.
Fix formset empty-form hiding for Grappelli .
Fixed packing admin/polymorphic/edit_inline/stacked.html in the wheel format.
Nothing published for this version
- Fix error when using date_hierarchy field in the admin
Fix error when using date_hierarchy field in the admin
Fixed Django 1.10 warning in admin add-type view.
- Fixed support for PolymorphicManager.from_queryset() for custom query sets.
Fixed support for PolymorphicManager.from_queryset() for custom query sets.
Fixed Django 1.7 changeform_view() redirection to the child admin site. This fixes custom admin code that uses these views, such as django-reversion ’s revision_view() / recover_view() .
Fixed .only('pk') field support.
Fixed object_history_template breadcrumb. NOTE: when using django-reversion / django-reversion-compare , make sure to implement a admin/polymorphic/object_history.html template in your project that extends from reversion/object_history.html or reversion-compare/object_history.html respectively.
- Added .only() and .defer() support.
Added .only() and .defer() support.
Added support for Django 1.8 complex expressions in .annotate() / .aggregate() .
Fix Django 1.9 handling of custom URLs. The new change-URL redirect overlapped any custom URLs defined in the child admin.
Fix Django 1.9 support in the admin.
Fix setting an extra custom manager without overriding the _default_manager .
Fix missing history_view() redirection to the child admin, which is important for django-reversion support. See the documentation for hints for django-reversion-compare support https://github.com/django-commons/django-polymorphic/discussions/831_ .
- Fixed support for reverse relations for relname___field when the field starts with an _ character. Otherwise, the query will be interpreted as subcl
Fixed support for reverse relations for relname___field when the field starts with an _ character. Otherwise, the query will be interpreted as subclass lookup ( ClassName___field ).
- BACKWARDS INCOMPATIBILITY: The import paths have changed to support Django 1.9. Instead of from polymorphic import X , you’ll have to import from th…
Added Django 1.9 compatibility.
Renamed polymorphic.manager => polymorphic.managers for consistentcy.
BACKWARDS INCOMPATIBILITY: The import paths have changed to support Django 1.9. Instead of from polymorphic import X , you’ll have to import from the proper package. For example:
from polymorphic.models import PolymorphicModel from polymorphic.managers import PolymorphicManager , PolymorphicQuerySet from polymorphic.showfields import ShowFieldContent , ShowFieldType , ShowFieldTypeAndContent
BACKWARDS INCOMPATIBILITY: Removed version.py in favor of a standard version in polymorphic/init.py .
BACKWARDS INCOMPATIBILITY: Removed automatic proxying of method calls to the queryset class. Use the standard Django methods instead:
- Added queryset.as_manager() support for Django 1.7/1.8
Added queryset.as_manager() support for Django 1.7/1.8
Optimize model access for non-dumpdata usage; avoid getattribute() call each time to access the manager.
Fixed 500 error when using invalid PK’s in the admin URL, return 404 instead.
Fixed possible issues when using an custom AdminSite class for the parent object.
Fixed Pickle exception when polymorphic model is cached.
- Fixed Django 1.8 support for related field widgets.
Fixed Django 1.8 support for related field widgets.
- Added support for custom primary key defined using mybase_ptr = models.OneToOneField(BaseClass, parent_link=True, related_name="...") .
Added Django 1.8 support
Added support for custom primary key defined using mybase_ptr = models.OneToOneField(BaseClass, parent_link=True, related_name="...") .
Fixed Python 3 issue in the admin
Fixed _default_manager to be consistent with Django, it’s now assigned directly instead of using add_to_class()
Fixed 500 error for admin URLs without a ‘/’, e.g. admin/app/parentmodel/id .
Fixed preserved filter for Django admin in delete views
Removed test noise for diamond inheritance problem (which Django 1.7 detects)
- Fix Django 1.4/1.5 queryset calls on related objects for unknown methods. The RelatedManager code overrides get_query_set() while __getattr__() used
Remove Django 1.7 warnings
Fix Django 1.4/1.5 queryset calls on related objects for unknown methods. The RelatedManager code overrides get_query_set() while getattr() used the new-style get_queryset() .
Fix validate_model_fields(), caused errors when metaclass raises errors
- BACKWARDS INCOMPATIBILITY: the get_child_type_choices() method receives 2 arguments now (request, action). If you have overwritten this method in yo…
Added Django 1.7 support.
Added permission check for all child types.
BACKWARDS INCOMPATIBILITY: the get_child_type_choices() method receives 2 arguments now (request, action). If you have overwritten this method in your code, make sure the method signature is updated accordingly.
- Added pk_regex to the PolymorphicParentModelAdmin to support non-integer primary keys.
Added pk_regex to the PolymorphicParentModelAdmin to support non-integer primary keys.
Fixed passing ?ct_id= to the add view for Django 1.6 (fixes compatibility with django-parler ).
One column per quarter.