Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt 2023-11-21 18:43:42 +01:00
parent 9f22ee95cc
commit 5ede611f22
No known key found for this signature in database
GPG Key ID: 9C3FA22FABF1AA8D
1 changed files with 1 additions and 1 deletions

View File

@ -4,6 +4,6 @@ from django.db import connection
from authentik.tenants.models import Tenant
def get_current_tenant() -> Tenant | None:
def get_current_tenant() -> Tenant:
"""Get tenant for current request"""
return Tenant.objects.get(schema_name=connection.schema_name)