Added
- Add Python 3.15 support.
Changed
- Fix many-to-many rows being written to the default database when using
_bulk_create=Truewith_using, including relations on related objects (#685). - Generate random strings and slugs about 4x faster with
random.choices(). When usingbaker.seed(), generated strings, slugs, and subsequent values can differ from earlier versions. Reusing the same seed still produces repeatable results within this version (#686). - Fix recipe sequences for models without an
objectsmanager or with a filtering default manager. These could raiseAttributeErroror restart the sequence on every call (#684).
Removed
- Drop EOL Python 3.10 support. Python 3.11 or later is now required.
Contributors
Thank you to @patrick-immometrica for fixing recipe sequences and multi-database M2M creation, and improving string generation performance (#684, #685, #686).
💙 Thank you to our sponsors for supporting Model Bakery’s maintenance.
If Model Bakery saves you time, consider supporting it through GitHub Sponsors or Ko-fi. Your support helps fund bug fixes, reviews, and compatibility with new Django and Python versions.
Using Model Bakery at work? Tidelift offers an enterprise subscription that helps organizations manage the security, licensing, and maintenance of their open source dependencies while supporting maintainers.