Model-bakery

Latest version: v1.18.0

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

Scan your dependencies

Page 4 of 5

1.4.0

Added
- Added postgis version to test settings
- Add support for Python 3.10 [PR 244](https://github.com/model-bakers/model_bakery/pull/244)
- Support for Django 4.0 [PR 236](https://github.com/model-bakers/model_bakery/pull/236)

Changed
- Validate `increment_by` parameter of `seq` helper when `value` is an instance of `datetime` [PR 247](https://github.com/model-bakers/model_bakery/pull/247)
- Fix a simple typo in `bulk_create` disclaimer in docs [PR 245](https://github.com/model-bakers/model_bakery/pull/245)
- Allow relation `_id` fields to use sequences [PR 253](https://github.com/model-bakers/model_bakery/pull/253)
- Fix bulk_create not working with multi-database setup [PR 252](https://github.com/model-bakers/model_bakery/pull/252)
- Conditionally support NullBooleanField, it's under deprecation and will be removed in Django 4.0 [PR 250](https://github.com/model-bakers/model_bakery/pull/250)
- Fix Django max version pin in requirements file [PR 251](https://github.com/model-bakers/model_bakery/pull/251)
- Improve type hinting to return the correct type depending on `_quantity` usage [PR 261](https://github.com/model-bakers/model_bakery/pull/261)

Removed
- Drop official Django 3.1 support. Django 2.2 is still supported, and 3.1 will likely keep working, but it’s not tested [PR 236](https://github.com/model-bakers/model_bakery/pull/236)

1.3.3

Added
- `_bulk_create` flag is not populating related objects as well [PR 206](https://github.com/model-bakers/model_bakery/pull/206)
- Add support for iterators on GFK fields when using _quantity param [PR 207](https://github.com/model-bakers/model_bakery/pull/207)
- Add support for iterators on many-to-many fields [PR237](https://github.com/model-bakers/model_bakery/pull/237)

Changed
- Fix typos in Recipes documentation page [PR 212](https://github.com/model-bakers/model_bakery/pull/212)
- Add `venv` to ignored folders of `flake8` and `pydocstyle` [PR214](https://github.com/model-bakers/model_bakery/pull/214)
- Run `flake8` after code modifications when linting [PR214](https://github.com/model-bakers/model_bakery/pull/214)
- Add typing for `baker.make` and `baker.prepare` [PR213](https://github.com/model-bakers/model_bakery/pull/213)

1.3.2

Changed
- Fixed a bug (introduced in [1.2.1](https://pypi.org/project/model-bakery/1.2.1/)) that was breaking imports of recipes from non-installed-app modules [PR #201](https://github.com/model-bakers/model_bakery/pull/201)
- Dependencies updates

1.3.1

Added
- [dev] Add explanations to imports in `generators.py` to match with current supported Django versions [PR 179](https://github.com/model-bakers/model_bakery/pull/179)

Changed
- Fix `requirements.txt` to cover Django 3.2 (everything from 2.2 till 4.0) [PR 182](https://github.com/model-bakers/model_bakery/pull/182)

1.3.0

Added
- Add Django 3.2 LTS support [PR 176](https://github.com/model-bakers/model_bakery/pull/176)
- Add new `_bulk_create` parameter to `make` for using Django manager `bulk_create` with `_quantity` [PR 134](https://github.com/model-bakers/model_bakery/pull/134)
- Add the functionality to import Django models using the `app_name.ModelName` convention in `import_from_str` [PR 140](https://github.com/model-bakers/model_bakery/pull/140)
- Add the functionality to import recipes using `app_name.recipe_name` [PR 140](https://github.com/model-bakers/model_bakery/pull/140)
- Add new `one_to_one` parameter to `foreign_key` to allow usage of `_quantity` for recipes based on models with OneToOne fields [PR 169](https://github.com/model-bakers/model_bakery/pull/169)
- [docs] Improved documentation on Recipe's import string [PR 175](https://github.com/model-bakers/model_bakery/pull/175/)
- [dev] Add a unit test for `utils.seq` [PR 143](https://github.com/model-bakers/model_bakery/pull/143)
- [dev] Run CI against `main` Django branch to cover possible upcoming changes/deprecations [PR 159](https://github.com/model-bakers/model_bakery/pull/159)
- [dev] Add GH Action for package releasing [PR 168](https://github.com/model-bakers/model_bakery/pull/168)

Changed

- Fixed a bug (introduced in 1.2.1) that was breaking creation of model instances with related model fields [PR 164](https://github.com/model-bakers/model_bakery/pull/164)
- Type hinting fixed for Recipe "_model" parameter [PR 124](https://github.com/model-bakers/model_bakery/pull/124)
- Dependencies updates from [dependabot](https://dependabot.com/) PRs [#170](https://github.com/model-bakers/model_bakery/pull/170) - [#171](https://github.com/model-bakers/model_bakery/pull/171) - [#172](https://github.com/model-bakers/model_bakery/pull/172) - [#173](https://github.com/model-bakers/model_bakery/pull/173) - [#174](https://github.com/model-bakers/model_bakery/pull/174)
- [dev] Modify `setup.py` to not import the whole module for package data, but get it from `__about__.py` [PR 142](https://github.com/model-bakers/model_bakery/pull/142)
- [dev] Add Dependabot config file [PR 146](https://github.com/model-bakers/model_bakery/pull/146)
- [dev] Update Dependabot config file to support GH Actions and auto-rebase [PR 160](https://github.com/model-bakers/model_bakery/pull/160)

Removed
- `model_bakery.timezone.now` fallback (use `django.utils.timezone.now` instead) [PR 141](https://github.com/model-bakers/model_bakery/pull/141)
- `model_bakery.timezone.smart_datetime` function (directly use `model_bakery.timezone.tz_aware` instead) [PR 147](https://github.com/model-bakers/model_bakery/pull/147)
- Remove all signs of Django 1.11 (as we dropped it in 1.2.1) [PR 157](https://github.com/model-bakers/model_bakery/pull/157)
- Drop unsupported Django 3.0 from CI (https://www.djangoproject.com/download/#unsupported-versions) [PR 176](https://github.com/model-bakers/model_bakery/pull/176)

1.2.1

Added
- Add ability to pass `str` values to `foreign_key` for recipes from other modules [PR 120](https://github.com/model-bakers/model_bakery/pull/120)
- Add new parameter `_using` to support multi database Django applications [PR 126](https://github.com/model-bakers/model_bakery/pull/126)
- [dev] Add instructions and script for running `postgres` and `postgis` tests. [PR 118](https://github.com/model-bakers/model_bakery/pull/118)

Changed
- Fixed _model parameter annotations [PR 115](https://github.com/model-bakers/model_bakery/pull/115)
- Fixes bug when field has callable `default` [PR 117](https://github.com/model-bakers/model_bakery/pull/117)

Removed
- [dev] Drop Python 3.5 support as it is retired (https://www.python.org/downloads/release/python-3510/) [PR #119](https://github.com/model-bakers/model_bakery/pull/119)
- [dev] Remove support for Django<2.2 ([more about Django supported versions](https://www.djangoproject.com/download/#supported-versions)) [PR 126](https://github.com/model-bakers/model_bakery/pull/126)

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.