managed: fix ManagedSerializer interfering with other serializers

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-02 15:00:15 +02:00
parent 1daba5db87
commit 22f50aae45

View file

@ -1,10 +1,8 @@
"""Serializer mixin for managed models""" """Serializer mixin for managed models"""
from rest_framework.fields import CharField from rest_framework.fields import CharField
from authentik.core.api.utils import PassiveSerializer
class ManagedSerializer:
class ManagedSerializer(PassiveSerializer):
"""Managed Serializer""" """Managed Serializer"""
managed = CharField(read_only=True, allow_null=True) managed = CharField(read_only=True, allow_null=True)