feat: 允许修改身份证号
This commit is contained in:
parent
ed936082c7
commit
c71557b82b
|
@ -157,7 +157,7 @@ class RemployeeUpdateSerializer(CustomModelSerializer):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Remployee
|
model = Remployee
|
||||||
fields = ['phone', 'photo']
|
fields = ['phone', 'photo', 'id_number']
|
||||||
|
|
||||||
def update(self, instance, validated_data):
|
def update(self, instance, validated_data):
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
|
|
Loading…
Reference in New Issue