jumpserver/apps/accounts/api/account/gathered_account.py

17 lines
422 B
Python
Raw Normal View History

from accounts import serializers
from accounts.models import GatheredAccount
from orgs.mixins.api import OrgBulkModelViewSet
__all__ = [
'GatheredAccountViewSet',
]
class GatheredAccountViewSet(OrgBulkModelViewSet):
model = GatheredAccount
search_fields = ('username', 'asset__address')
filterset_fields = ('username',)
serializer_classes = {
'default': serializers.AccountSerializer,
}