优化修改密码
This commit is contained in:
@@ -198,8 +198,6 @@ class CreateUserView(APIView):
|
||||
class EditorialStaffView(APIView):
|
||||
def post(self, request, *args, **kwargs):
|
||||
"""修改人员信息"""
|
||||
|
||||
print(request.data)
|
||||
id = request.data.get('id')
|
||||
username = request.data.get('username') # 姓名
|
||||
account = request.data.get('account') # 账号
|
||||
@@ -218,8 +216,6 @@ class EditorialStaffView(APIView):
|
||||
contract = request.FILES.getlist('contract') # 合同
|
||||
ApplicationForm = request.FILES.getlist('ApplicationForm') # 入职申请表
|
||||
salary = request.data.get('salary') # 工资标准
|
||||
print([username, account, password, IdCard, department, position, nation, mobilePhone, team, Dateofjoining,
|
||||
academic])
|
||||
# 密码改为可选参数,其他参数仍为必填
|
||||
if not all([username, account, IdCard, department, position, nation, mobilePhone, team, Dateofjoining,
|
||||
academic]):
|
||||
|
||||
Reference in New Issue
Block a user