Utils¶
Table of Contents¶
Functions¶
get_tenant_user_model()
- Return the Tenant User model set in the settingsDTU_TENANT_USER_MODEL
.get_active_user_tenant()
- Return the active tenant of a givenauth.User
.get_user_tenants()
- Lists the tenants associated with a user.get_tenants()
- Returns a list of all tenants.
from django_tenants_url.utils import (
get_tenant_user_model,
get_active_user_tenant,
get_user_tenants,
get_tenants
)