diff --git a/authentik/policies/api/policies.py b/authentik/policies/api/policies.py index 0ef0d9775..55bd29ddf 100644 --- a/authentik/policies/api/policies.py +++ b/authentik/policies/api/policies.py @@ -5,7 +5,6 @@ from drf_spectacular.utils import OpenApiResponse, extend_schema from guardian.shortcuts import get_objects_for_user from rest_framework import mixins from rest_framework.decorators import action -from rest_framework.exceptions import PermissionDenied from rest_framework.request import Request from rest_framework.response import Response from rest_framework.serializers import ModelSerializer, SerializerMethodField diff --git a/authentik/tenants/tests.py b/authentik/tenants/tests.py index c3c707d71..95e43e8d6 100644 --- a/authentik/tenants/tests.py +++ b/authentik/tenants/tests.py @@ -24,6 +24,7 @@ class TestTenants(APITestCase): "branding_title": "authentik", "matched_domain": tenant.domain, "ui_footer_links": CONFIG.y("footer_links"), + "default_locale": "", }, ) @@ -41,6 +42,7 @@ class TestTenants(APITestCase): "branding_title": "custom", "matched_domain": "bar.baz", "ui_footer_links": CONFIG.y("footer_links"), + "default_locale": "", }, ) @@ -55,6 +57,7 @@ class TestTenants(APITestCase): "branding_title": "authentik", "matched_domain": "fallback", "ui_footer_links": CONFIG.y("footer_links"), + "default_locale": "", }, )