lint
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
parent
7c639d5429
commit
d0d3ae9218
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Reference in New Issue