修复BUG: 修改用户信息时,手机号必须填写bug
parent
0723262cd4
commit
bc0f848cf0
|
@ -101,6 +101,7 @@ class UserUpdateSerializer(CustomModelSerializer):
|
||||||
validators=[
|
validators=[
|
||||||
CustomUniqueValidator(queryset=Users.objects.all(), message="手机号必须唯一")
|
CustomUniqueValidator(queryset=Users.objects.all(), message="手机号必须唯一")
|
||||||
],
|
],
|
||||||
|
allow_blank=True
|
||||||
)
|
)
|
||||||
|
|
||||||
def save(self, **kwargs):
|
def save(self, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue