Model-bakery

Latest version: v1.20.4

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

1.19.4

Changed
- Allow `None` value for generic foreign keys within iterators
- Make `TextField` generator respect `max_length`
- Deprecate `model_bakery.random_gen.gen_text` in favor of `model_bakery.random_gen.gen_string`

1.19.3

Changed
- Do not handle GFK fields when the object is None

1.19.2

Added
- docs: Add Django settings example for custom field generators

Changed
- Align GFK and content type fields generation
- Allow `prepare()` to be used with GFK

1.19.1

Changed
- Handle bulk creation when using reverse related name

1.19.0

Added
- Add Django 5.1 support

1.18.3

Changed
- Fix support of `GenericForeignKey` fields in combination with `_fill_optional`

Page 2 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.