mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
@@ -17,8 +17,8 @@ class AccountSerializerCreateValidateMixin:
|
||||
replace_attrs: callable
|
||||
|
||||
def to_internal_value(self, data):
|
||||
self.id = data.pop('id', None)
|
||||
ret = super().to_internal_value(data)
|
||||
self.id = ret.pop('id', None)
|
||||
self.push_now = ret.pop('push_now', False)
|
||||
self.template = ret.pop('template', False)
|
||||
return ret
|
||||
|
Reference in New Issue
Block a user