`_bulk_create` without `_quantity` will be ignored
jedie opened this issue · 0 comments
jedie commented
e.g.: baker.make(MyModel, _bulk_create=True)
will no use bulk create, because _quantity
can't be None
, so _bulk_create
will be just ignored, see:
model_bakery/model_bakery/baker.py
Lines 126 to 127 in 38d2dd7
I think it's not very much to do, to support this case, isn't it? I can create a PR, if this is ok.
Versions
- Model Bakery 1.17.0