This commit is contained in:
commit
919b4caec7
|
@ -2801,6 +2801,7 @@ def userhandle(req):
|
|||
a.save()
|
||||
companyid = getcompany(a.userid)
|
||||
a.usecomp = Partment.objects.get(partid=companyid)
|
||||
Group.objects.get(usecomp__partid=companyid,grouptype=3).users.add(a) #赋权
|
||||
profile, _ = Userprofile.objects.get_or_create(user=a, defaults={'user':a})
|
||||
profile.realname = req.POST.get('realname', '')
|
||||
profile.cardnum = req.POST.get('cardnum', '')
|
||||
|
|
Loading…
Reference in New Issue