From 7a5fc97ddca5dccf745502ea47f04ee9b2bc3eb3 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Wed, 20 Dec 2023 11:24:45 +0100 Subject: [PATCH] blueprints: disable tenants management Signed-off-by: Marc 'risson' Schmitt --- authentik/blueprints/v1/importer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/authentik/blueprints/v1/importer.py b/authentik/blueprints/v1/importer.py index eb4942958..aa937fae1 100644 --- a/authentik/blueprints/v1/importer.py +++ b/authentik/blueprints/v1/importer.py @@ -43,6 +43,7 @@ from authentik.lib.sentry import SentryIgnoredException from authentik.outposts.models import OutpostServiceConnection from authentik.policies.models import Policy, PolicyBindingModel from authentik.providers.scim.models import SCIMGroup, SCIMUser +from authentik.tenants.models import Tenant # Context set when the serializer is created in a blueprint context # Update website/developer-docs/blueprints/v1/models.md when used @@ -57,6 +58,7 @@ def excluded_models() -> list[type[Model]]: from django.contrib.auth.models import User as DjangoUser return ( + Tenant, DjangoUser, DjangoGroup, # Base classes