diff --git a/apps/accounts/serializers/account/account.py b/apps/accounts/serializers/account/account.py index cc13aced8..36dff55a9 100644 --- a/apps/accounts/serializers/account/account.py +++ b/apps/accounts/serializers/account/account.py @@ -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