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.
20 lines
563 B
20 lines
563 B
from rest_framework import serializers
|
|
from ..hands import SystemUser
|
|
|
|
__all__ = [
|
|
'SystemUserSerializer',
|
|
]
|
|
|
|
|
|
class SystemUserSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = SystemUser
|
|
fields = [
|
|
'id', 'name', 'username', 'protocol',
|
|
'login_mode', 'login_mode_display',
|
|
'priority', 'username_same_with_user',
|
|
'auto_push', 'cmd_filters', 'sudo', 'shell', 'comment',
|
|
'sftp_root', 'date_created', 'created_by'
|
|
]
|
|
ref_name = 'PermedSystemUserSerializer'
|