From 5ede611f22c00b788169f67fefec4e4e689d0621 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Tue, 21 Nov 2023 18:43:42 +0100 Subject: [PATCH] fix type Signed-off-by: Marc 'risson' Schmitt --- authentik/tenants/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/tenants/utils.py b/authentik/tenants/utils.py index d2385ed84..aabc2e931 100644 --- a/authentik/tenants/utils.py +++ b/authentik/tenants/utils.py @@ -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)