"""Logout Stage API Views"""
from rest_framework.viewsets import ModelViewSet

from authentik.flows.api.stages import StageSerializer
from authentik.stages.user_logout.models import UserLogoutStage


class UserLogoutStageSerializer(StageSerializer):
    """UserLogoutStage Serializer"""

    class Meta:

        model = UserLogoutStage
        fields = StageSerializer.Meta.fields


class UserLogoutStageViewSet(ModelViewSet):
    """UserLogoutStage Viewset"""

    queryset = UserLogoutStage.objects.all()
    serializer_class = UserLogoutStageSerializer
