All notable changes to model_bakery
will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Fix recipes declared with reverse relationship using
foreign_key
andone_to_one=True
- Fixed a bug (introduced in 1.2.1) that was breaking imports of recipes from non-installed-app modules PR #201
- Dependencies updates
- [dev] Add explanations to imports in
generators.py
to match with current supported Django versions PR #179
- Fix
requirements.txt
to cover Django 3.2 (everything from 2.2 till 4.0) PR #182
- Add Django 3.2 LTS support PR #176
- Add new
_bulk_create
parameter tomake
for using Django managerbulk_create
with_quantity
PR #134 - Add the functionality to import Django models using the
app_name.ModelName
convention inimport_from_str
PR #140 - Add the functionality to import recipes using
app_name.recipe_name
PR #140 - Add new
one_to_one
parameter toforeign_key
to allow usage of_quantity
for recipes based on models with OneToOne fields PR #169 - [docs] Improved documentation on Recipe's import string PR #175
- [dev] Add a unit test for
utils.seq
PR #143 - [dev] Run CI against
main
Django branch to cover possible upcoming changes/deprecations PR #159 - [dev] Add GH Action for package releasing PR #168
- Fixed a bug (introduced in 1.2.1) that was breaking creation of model instances with related model fields PR #164
- Type hinting fixed for Recipe "_model" parameter PR #124
- Dependencies updates from dependabot PRs #170 - #171 - #172 - #173 - #174
- [dev] Modify
setup.py
to not import the whole module for package data, but get it from__about__.py
PR #142 - [dev] Add Dependabot config file PR #146
- [dev] Update Dependabot config file to support GH Actions and auto-rebase PR #160
model_bakery.timezone.now
fallback (usedjango.utils.timezone.now
instead) PR #141model_bakery.timezone.smart_datetime
function (directly usemodel_bakery.timezone.tz_aware
instead) PR #147- Remove all signs of Django 1.11 (as we dropped it in 1.2.1) PR #157
- Drop unsupported Django 3.0 from CI (https://www.djangoproject.com/download/#unsupported-versions) PR #176
- Add ability to pass
str
values toforeign_key
for recipes from other modules PR #120 - Add new parameter
_using
to support multi database Django applications PR #126 - [dev] Add instructions and script for running
postgres
andpostgis
tests. PR #118
- [dev] Drop Python 3.5 support as it is retired (https://www.python.org/downloads/release/python-3510/) PR #119
- [dev] Remove support for Django<2.2 (more about Django supported versions) PR #126
- Support to django 3.1
JSONField
PR #85 and PR #106 - Added type annotations PR #100
- Support for Python 3.9 PR #113
- [dev] Changelog reminder (GitHub action)
- Add pytest example
- Support for
prefix
inseq
values (PR #111 fixes Issue #93) - [dev] CI switched to GitHub Actions
- [dev] Freeze dev requirements
- [dev] Add Django 3.1 to test matrix PR #103 and PR #112
- [dev] pre-commit to use local packages (so versions will match)
- [dev] consistent use of pydocstyle
- [dev] Updates to MANIFEST.in
- [dev] Correct field in recipe docs
- [dev] Adjust imports for Django 3.1 compatibility PR #112
- Support to Postgres fields:
DecimalRangeField
,FloatRangeField
,IntegerRangeField
,BigIntegerRangeField
,DateRangeField
,DateTimeRangeField
PR #80
- Add isort and fix imports PR #77
- Enable
seq
to be imported frombaker
PR #76 - Fix PostGIS model registration PR #67
- Django 3.0 and Python 3.8 to CI PR #48
- Improve code comments PR #31
- Switch to tox-travis PR #43
- Add black job PR #42
- README.md instead of rst PR #44
- New
start
argument inbaker.seq
PR #56 - Fixes bug when registering custom fields generator via
settings.py
PR #58 - The different IntegerField types now will generate values on their min/max range PR #59
- Improvements on the migrations script
- Python script to help developers on migrating from Model Mommy to Model Bakery
- Rename model_mommy code to model_bakery