Open tylerecouture opened 4 years ago
If I have an object from a tenant model, is there some sort of reverse lookup I can do to determine which tenant it belongs to?
You can lookup which schema currently is being used by your connection by:
from django.db import connection print(connection.tenant)
If I have an object from a tenant model, is there some sort of reverse lookup I can do to determine which tenant it belongs to?