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
1 changed files with 1 additions and 3 deletions

View File

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