fix: 资产克隆账号bug (#9407)

Co-authored-by: feng <1304903146@qq.com>
pull/9412/head
fit2bot 2023-02-02 15:01:56 +08:00 committed by GitHub
parent d78725f7c5
commit 6429b56a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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