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 datetime import datetime
|
||||||
|
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils.text import slugify
|
from django.utils.text import slugify
|
||||||
from django.utils.timezone import now
|
from django.utils.timezone import now
|
||||||
from rest_framework.request import Request
|
|
||||||
|
|
||||||
from authentik.core.models import Group, Token, TokenIntents, User
|
from authentik.core.models import Group, Token, TokenIntents, User
|
||||||
|
|
||||||
|
|
|
@ -56,17 +56,20 @@ class TenantSerializer(ModelSerializer):
|
||||||
|
|
||||||
class TenantAdminGroupRequestSerializer(PassiveSerializer):
|
class TenantAdminGroupRequestSerializer(PassiveSerializer):
|
||||||
"""Tenant admin group creation request serializer"""
|
"""Tenant admin group creation request serializer"""
|
||||||
|
|
||||||
user = CharField()
|
user = CharField()
|
||||||
|
|
||||||
|
|
||||||
class TenantRecoveryKeyRequestSerializer(PassiveSerializer):
|
class TenantRecoveryKeyRequestSerializer(PassiveSerializer):
|
||||||
"""Tenant recovery key creation request serializer"""
|
"""Tenant recovery key creation request serializer"""
|
||||||
|
|
||||||
user = CharField()
|
user = CharField()
|
||||||
duration_days = IntegerField(initial=365)
|
duration_days = IntegerField(initial=365)
|
||||||
|
|
||||||
|
|
||||||
class TenantRecoveryKeyResponseSerializer(PassiveSerializer):
|
class TenantRecoveryKeyResponseSerializer(PassiveSerializer):
|
||||||
"""Tenant recovery key creation response serializer"""
|
"""Tenant recovery key creation response serializer"""
|
||||||
|
|
||||||
expiry = DateTimeField()
|
expiry = DateTimeField()
|
||||||
url = CharField()
|
url = CharField()
|
||||||
|
|
||||||
|
|
Reference in New Issue