Added
- Add Django 6.1 support, including compatible generic foreign key handling (#617)
- [dev] Add experimental Python 3.15 CI coverage; failures do not block CI (#652)
Changed
- Fix reverse
OneToOneFieldrelations not being persisted to the database when passed as kwargs tobaker.make(), including iterators and bulk creation (#473) - Validate unsaved reverse one-to-one objects and their unsaved dependencies when
_full_clean=True, and roll back the parent and related writes if validation or saving fails (#592) - Make the
URLFieldandEmailFieldgenerators respectmax_lengthwhen the configured limit is at least 17 and 13 characters, respectively; smaller limits still produce values that exceedmax_length - Fix explicit
auto_now/auto_now_addvalues being written to the wrong database when_usingis set, and route the follow-upUPDATEthrough_base_managerso it also works on models without anobjectsmanager or with a filtered default manager - [dev] Extract the attr-partitioning logic out of
Baker.instance()into a pure, database-freeBaker._classify_attrs()helper, with direct unit tests asserting it runs zero queries - [dev] Align uv and Dependabot dependency cooldowns, enforce Zizmor in CI, and update pre-commit hooks with Dependabot
💙 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.