We’re happy to announce the release of Django MongoDB Backend 5.2.4, a bug fix and performance release for the 5.2.x LTS series, which supports Django 5.2 LTS.
Bug fixes
- Prevented
django_mongodb_backend.transaction.atomic()from silencing exceptions raised on commit. - Fixed a crash when saving a model with
PolymorphicEmbeddedModelFieldorPolymorphicEmbeddedModelArrayFieldthat specifies embedded_models as a list of concrete models.
Performance improvements
- Improved QuerySet join (
$lookup) performance by pushing complex conditions from the WHERE ($match) clause to the $lookup stage.
See the full release notes for details: django-mongodb-backend/docs/releases/5.2.x.rst at main · mongodb/django-mongodb-backend · GitHub
Install or upgrade with pip install --upgrade django-mongodb-backend==5.2.4.
Found a bug or have a feature request? Please file an issue in the Python Integrations (INTPYTHON) project on our public Jira: https://jira.mongodb.org/projects/INTPYTHON/
As always, feedback and bug reports are welcome. Happy building!