Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_bulk_create cannot use _using #210

Closed
starryrbs opened this issue Jun 18, 2021 · 2 comments
Closed

_bulk_create cannot use _using #210

starryrbs opened this issue Jun 18, 2021 · 2 comments

Comments

@starryrbs
Copy link

_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

@berinhard
Copy link
Member

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.

@berinhard
Copy link
Member

Fixed by #252

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

No branches or pull requests

2 participants