perf: gather account automation api (#9029)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-11-08 20:33:55 +08:00
committed by GitHub
parent d040b4cfe0
commit 0ff8758ea8
3 changed files with 41 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
#
from orgs.mixins.api import OrgBulkModelViewSet
from assets.models import GatherAccountsAutomation
from assets import serializers
__all__ = [
'GatherAccountsAutomationViewSet',
]
class GatherAccountsAutomationViewSet(OrgBulkModelViewSet):
model = GatherAccountsAutomation
filter_fields = ('name',)
search_fields = filter_fields
ordering_fields = ('name',)
serializer_class = serializers.GatherAccountAutomationSerializer