model-bakers/model_bakery

_bulk_create cannot use _using

starryrbs opened this issue · 2 comments

_bulk_create cannot use _using

I have the following models:

class House(models.Model):
     name = models.CharField()

When I use bulk create=True,

baker.make(House, _quantity=20,_bulk_create=True,_using='other')

Expected behavior

House is created normally. It is normal not to use _bulk_create.

Actual behavior

using is the default.

Reproduction Steps

How to reproduce this issue.

Versions

Python: 3.6
Django: 3.1
Model Bakery: 1.3.1

Thanks for opening this issue @starryrbs. Probably we have to update the new bulk_create method to consider this parameter and to pass it to subsequent save calls.

Fixed by #252