mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-23 12:29:47 +00:00
perf: 优化 gateway 返回情况
This commit is contained in:
@@ -12,19 +12,19 @@ from .base import BaseAccountSerializer
|
||||
|
||||
|
||||
class AccountSerializerCreateValidateMixin:
|
||||
id: str
|
||||
from_id: str
|
||||
template: bool
|
||||
push_now: bool
|
||||
replace_attrs: callable
|
||||
|
||||
def to_internal_value(self, data):
|
||||
_id = data.pop('id', None)
|
||||
from_id = data.pop('id', None)
|
||||
ret = super().to_internal_value(data)
|
||||
self.id = _id
|
||||
self.from_id = from_id
|
||||
return ret
|
||||
|
||||
def set_secret(self, attrs):
|
||||
_id = self.id
|
||||
_id = self.from_id
|
||||
template = attrs.pop('template', None)
|
||||
|
||||
if _id and template:
|
||||
|
Reference in New Issue
Block a user