Skip to content

Conversation

@pyup-bot
Copy link
Collaborator

This PR updates model_bakery from 1.11.0 to 1.19.5.

Changelog

1.19.5

Changed
- Reset `content_type` and `object_id` fields when the content object is `None`

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`

1.18.2

Changed
- Fix `make_recipe` to work with `_quantity` (28)

1.18.1

Changed
- Replace expensive `count()` with cheap `exists()`

1.18.0

Added
- Add Django 5.0 support

Changed
- Allow baking without `contenttypes` framework

Removed
- Drop Django 3.2 and 4.1 support (reached end of life)

1.17.0

Added
- Add support to `auto_now` and `auto_now_add` fields.

Changed
- Remove unnecessary casting to string methods `random_gen.gen_slug` and `random_gen.gen_string`
- [doc] Update installation command

1.16.0

Added
- [dev] Test coverage report

Changed
- Improved performance of `Baker.get_fields()`
- [dev] Cleanup Sphinx documentation config
- [dev] Update `pre-commit` config
- [dev] CI: remove hard requirement on linters for tests to run

1.15.0

Added
- Add Python 3.12 support

Changed
- Revert erroneous optimisation of related logic (fix 439)
- [dev] Bring tox back

Removed

1.14.0

Added
- forward "_create_files" flag to child generators for relational fields

Changed
- Small improvements to `recipe.py::_mapping`
- Improvements to `baker.py::bulk_create`
- [dev] Replaced `pycodestyle`, `pydocstyle`, `flake8` and `isort` with `ruff`
- [dev] Drop tox in favor of using GitHub Actions matrix

Removed
- Drop `baker.py::is_iterator`
- Drop Python 3.7 support (reached end of life)

1.13.0

Added
- Add support for global seeding to baker random generation

1.12.0

Added
- Add support for CharField with max_length=None

Changed
- Fix utils.seq with start=0
Links

@pyup-bot
Copy link
Collaborator Author

Closing this in favor of #257

@pyup-bot pyup-bot closed this Oct 10, 2024
@chivke chivke deleted the pyup-update-model_bakery-1.11.0-to-1.19.5 branch October 10, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants