Closed firmansyahrr closed 1 month ago
I have limited experience with JWT tokens, but to obtain a tenant instance, you would:
request.tenant
.user.tenants.all()
. Note that tenants
is a many-to-many field on the user model, allowing you to apply queryset methods to it.
Hope that helps
Hello,
I try to create backend application using django rest framework, django tenants and django tenant users. I have a problem. I got this error
'TenantUser' object has no attribute 'tenant'
when try to custom my class to add tenant information when the jwt obtain new token.Here is my custom class
And here is my settings.py
any suggestion about this error.
Thanks.