Closed rob101 closed 3 years ago
Django doesn't call the save() method when using bulk_create; per the docs.
save()
bulk_create
It looks like the TenantModelMixin therefore doesn't set the current tenant on object creation via this method.
It may be worth adding this, or otherwise referring to the exception in the docs.
hi @rob101, I fixed it in the 2.3.1 release. Thank you for creating the issue.
2.3.1
Django doesn't call the
save()
method when usingbulk_create
; per the docs.It looks like the TenantModelMixin therefore doesn't set the current tenant on object creation via this method.
It may be worth adding this, or otherwise referring to the exception in the docs.