Skip to content

1.24.0

Latest

Choose a tag to compare

@amureki amureki released this 23 Jun 21:54
69beeab

Added

  • Add _full_clean flag to baker.make() and baker.prepare() to run Django model validation (False by default), including the baker.make(..., _bulk_create=True) path (#523)

Changed

  • Fix related() with reverse M2M relations raising AttributeError (#601)
  • [dev] Modernize tox and CI around tox-uv, dependency groups, reusable coverage/docs tox environments, and docs validation in CI
  • When using baker.make(..., _bulk_create=True, _full_clean=True), the operation is wrapped in a transaction to ensure atomic rollback if validation fails
  • Use the requested _using database consistently for generated related objects in baker.make(..., _bulk_create=True)
  • Preserve correct parent-to-FK associations in baker.make(..., _bulk_create=True) when related objects mix saved and unsaved instances

Removed

  • Drop EOL Django 4.2 support

GitHub Changelog

  • Add _full_clean flag to baker.make(), prepare(), and bulk_create() by @benaduo in #591
  • Add sponsors section to README by @codingjoe in #607
  • Fix bulk_create _using propagation for related objects by @amureki in #608
  • Fix sponsors image link in README by @codingjoe in #609
  • Modernize tox workflow with uv and docs validation by @amureki in #610
  • Bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot[bot] in #611
  • Bump astral-sh/setup-uv from 8.1.0 to 8.2.0 by @dependabot[bot] in #612
  • Fix #601: Avoid AttributeError when using related with reverse M2M relation by @SvenMoenig in #613

New Contributors

Full Changelog: 1.23.5...1.24.0