fix type
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
parent
9f22ee95cc
commit
5ede611f22
|
@ -4,6 +4,6 @@ from django.db import connection
|
||||||
from authentik.tenants.models import Tenant
|
from authentik.tenants.models import Tenant
|
||||||
|
|
||||||
|
|
||||||
def get_current_tenant() -> Tenant | None:
|
def get_current_tenant() -> Tenant:
|
||||||
"""Get tenant for current request"""
|
"""Get tenant for current request"""
|
||||||
return Tenant.objects.get(schema_name=connection.schema_name)
|
return Tenant.objects.get(schema_name=connection.schema_name)
|
||||||
|
|
Reference in New Issue