Django MongoDB Backend 5.1.x¶
5.1.0 beta 4¶
August 13, 2025
Backward-incompatible: Removed support for database caching as the MongoDB security team considers the cache backend’s
pickleencoding of cached values a vulnerability. If an attacker compromises the database, they could run arbitrary commands on the application server.Fixed crash when loading models with a null value for
ArrayFields where thebase_fielduses a database converter.Fixed
RecursionErrorwhen usingTruncdatabase functions on non-MongoDB databases.Improved
QuerySetperformance by removing low limit on server-side chunking.
5.1.0 beta 3¶
May 14, 2025
Added support for a field’s custom lookups and transforms in
EmbeddedModelField, e.g.ArrayField’scontains,contained__by,len, etc.Fixed the results of queries that use the
tzinfoparameter of theTruncdatabase functions.Added support for
QuerySet.dates()anddatetimes().Fixed loading of
QuerySetresults for embedded models that have fields that use database converters. For example, a crash forDecimalField:ValidationError: ['“1” value must be a decimal number.']).
5.1.0 beta 2¶
April 21, 2025
Backward-incompatible:
ArrayField'ssizeparameter is renamed tomax_size. Thesizeparameter is now used to enforce fixed-length arrays.Added support for database caching (later removed in beta 4).
Fixed
QuerySet.raw_aggregate()field initialization when the document key order doesn’t match the order of the model’s fields.
5.1.0 beta 1¶
February 26, 2025
Backward-incompatible:
ObjectIdAutoFieldno longer accepts integer values. The undocumented behavior eased testing with Django’s test suite which hardcodes many integer primary key values.Fixed the inability to save nested embedded model forms.
Added async support.
Added the
db_nameparameter toparse_uri().Added
django_mongodb_backend.routers.MongoRouterto allowdumpdatato ignore embedded models. See Configuring the DATABASE_ROUTERS setting.
5.1.0 beta 0¶
January 30, 2025
Initial Public Preview release.