You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using baker.make with _bulk_create=True, it will silently ignore arguments that should be used to fill many-to-many fields if the arguments use the reverve/related name.
Follow up to #298, where the same issue was fixed when using the forward name of a m2m relationship.
Expected behavior
For each house instance in houses, the housedetail_set should contain the detail, and thus have count() == 1. This also happens when _bulk_create=False is used.
Versions
Python: [3.10.6]
Django [4.1.6]
Model Bakery [1.9.0]
The text was updated successfully, but these errors were encountered:
When using
baker.make
with_bulk_create=True
, it will silently ignore arguments that should be used to fill many-to-many fields if the arguments use the reverve/related name.Follow up to #298, where the same issue was fixed when using the forward name of a m2m relationship.
To Reproduce
with
this snippet fails at the assertion:
Expected behavior
For each house instance in
houses
, thehousedetail_set
should contain thedetail
, and thus havecount() == 1
. This also happens when_bulk_create=False
is used.Versions
The text was updated successfully, but these errors were encountered: