From d0d3ae9218079b9a1c009a102de8e716187fb1a7 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Thu, 28 Dec 2023 14:40:39 +0100 Subject: [PATCH] lint Signed-off-by: Marc 'risson' Schmitt --- authentik/recovery/lib.py | 2 +- authentik/tenants/api.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/authentik/recovery/lib.py b/authentik/recovery/lib.py index 8a97d1c07..b700c4a8f 100644 --- a/authentik/recovery/lib.py +++ b/authentik/recovery/lib.py @@ -1,9 +1,9 @@ +"""Recovery helper functions.""" from datetime import datetime from django.urls import reverse from django.utils.text import slugify from django.utils.timezone import now -from rest_framework.request import Request from authentik.core.models import Group, Token, TokenIntents, User diff --git a/authentik/tenants/api.py b/authentik/tenants/api.py index 70b273e02..8bab2eb92 100644 --- a/authentik/tenants/api.py +++ b/authentik/tenants/api.py @@ -56,17 +56,20 @@ class TenantSerializer(ModelSerializer): class TenantAdminGroupRequestSerializer(PassiveSerializer): """Tenant admin group creation request serializer""" + user = CharField() class TenantRecoveryKeyRequestSerializer(PassiveSerializer): """Tenant recovery key creation request serializer""" + user = CharField() duration_days = IntegerField(initial=365) class TenantRecoveryKeyResponseSerializer(PassiveSerializer): """Tenant recovery key creation response serializer""" + expiry = DateTimeField() url = CharField()