mirror of https://github.com/jumpserver/jumpserver
28 lines
892 B
Python
28 lines
892 B
Python
import copy
|
|
from accounts.models import PushAccountAutomation
|
|
from .change_secret import (
|
|
ChangeSecretAutomationSerializer, ChangeSecretUpdateAssetSerializer,
|
|
ChangeSecretUpdateNodeSerializer
|
|
)
|
|
|
|
|
|
class PushAccountAutomationSerializer(ChangeSecretAutomationSerializer):
|
|
class Meta(ChangeSecretAutomationSerializer.Meta):
|
|
model = PushAccountAutomation
|
|
fields = [
|
|
n for n in ChangeSecretAutomationSerializer.Meta.fields
|
|
if n not in ['recipients']
|
|
]
|
|
|
|
|
|
class PushAccountUpdateAssetSerializer(ChangeSecretUpdateAssetSerializer):
|
|
class Meta:
|
|
model = PushAccountAutomation
|
|
fields = ChangeSecretUpdateAssetSerializer.Meta.fields
|
|
|
|
|
|
class PushAccountUpdateNodeSerializer(ChangeSecretUpdateNodeSerializer):
|
|
class Meta:
|
|
model = PushAccountAutomation
|
|
fields = ChangeSecretUpdateNodeSerializer.Meta.fields
|