mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-30 21:50:01 +00:00
parent
d78725f7c5
commit
6429b56a54
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user