mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
744 B
25 lines
744 B
# -*- coding: utf-8 -*-
|
|
#
|
|
from django.utils.translation import ugettext_lazy as _
|
|
from assets.models import GatherAccountsAutomation
|
|
from common.utils import get_logger
|
|
|
|
from .base import BaseAutomationSerializer
|
|
|
|
logger = get_logger(__file__)
|
|
|
|
__all__ = [
|
|
'GatherAccountAutomationSerializer',
|
|
]
|
|
|
|
|
|
class GatherAccountAutomationSerializer(BaseAutomationSerializer):
|
|
class Meta:
|
|
model = GatherAccountsAutomation
|
|
read_only_fields = BaseAutomationSerializer.Meta.read_only_fields + ['executed_amount']
|
|
fields = BaseAutomationSerializer.Meta.fields + read_only_fields
|
|
|
|
extra_kwargs = {**BaseAutomationSerializer.Meta.extra_kwargs, **{
|
|
'executed_amount': {'label': _('Executed amount')}
|
|
}}
|