mirror of https://github.com/jumpserver/jumpserver
13 lines
368 B
Python
13 lines
368 B
Python
|
from orgs.mixins.api import OrgBulkModelViewSet
|
||
|
from ..models import AccountTemplate
|
||
|
from .. import serializers
|
||
|
|
||
|
|
||
|
class AccountTemplateViewSet(OrgBulkModelViewSet):
|
||
|
model = AccountTemplate
|
||
|
filterset_fields = ("username", 'name')
|
||
|
search_fields = ('username', 'name')
|
||
|
serializer_classes = {
|
||
|
'default': serializers.AccountTemplateSerializer
|
||
|
}
|