-
Notifications
You must be signed in to change notification settings - Fork 123
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
ManyToMany field between the TenantModel class and a Non Tenant model crashes on .add() #163
Comments
Same issue, different error:
Looks like this caused due the fact that "through" models.py class Model(TenantModel):
...
many_to_many_field = models.ManyToManyField("OtherModel") |
Same here, have to downgrade to 3.0 which is working fine |
Hey @KrYpTeD974 @denys-chura @tuannguyen-groove I fixed the issue. Just waiting for the review. I will publish a new release after approval |
Thank you for fixing this so quickly ! |
Thanks @KrYpTeD974 for your quick response and tests. With your support, I hope we will make django_multitenant more stable |
It seems that having a ManyToMany field between the TenantModel class and a Non Tenant model results in a crash when trying to add items in the collection.
This easily reproductible from a fresh Django install:
models.py
test.py
The error is :
I don't think the link table betweek User and Tenant should have a tenant_field.
The text was updated successfully, but these errors were encountered: