github model-bakers/model_bakery 1.25.0

43 minutes ago

Added

  • Add Python 3.15 support.

Changed

  • Fix many-to-many rows being written to the default database when using _bulk_create=True with _using, including relations on related objects (#685).
  • Generate random strings and slugs about 4x faster with random.choices(). When using baker.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 objects manager or with a filtering default manager. These could raise AttributeError or 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.

Don't miss a new model_bakery release

NewReleases is sending notifications on new releases.