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 PolymorphicSerializer from rest_polymorphic.serializers to polymorphic.contrib.drf.serializers
What's Changed
- Convert manager warnings to system checks by @bckohan in #821
- Attempt fix for CI runner playwright failures #822 by @bckohan in #823
- Lazily join on content types by value if not cached. by @bckohan in #828
- Unregistered by @bckohan in #829
- Update django-reversion docs and add tests by @bckohan in #830
- add django-extra-views integration test and update docs by @bckohan in #833
- Bring in django-rest-polymorphic by @bckohan in #834
- Simplify guardian integration and add tests / update docs by @bckohan in #835
- add filterset test to drf integration tests by @bckohan in #838
- bump version, prep changelog by @bckohan in #839
Full Changelog: v4.9.0...v4.10.0