Skip to content

Commit

Permalink
don't set trainee as productive
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalfox committed Nov 21, 2023
1 parent 2948ffb commit 7327a05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion people/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def consultant_provisioning(request):
consultant = Consultant(name="%s %s" % (request.POST["firstname"], request.POST["lastname"]),
trigramme = request.POST["trigramme"].upper(),
company = Subsidiary.objects.get(code=request.POST["company"],),
profil = ConsultantProfile.objects.get(name=request.POST["profile"]))
profil = ConsultantProfile.objects.get(name=request.POST["profile"]),
productive = request.POST.get("productive", True))
consultant.save()
if request.headers.get("Dry-Run"):
raise Exception("Dry-Run, rollback user creation")
Expand Down

0 comments on commit 7327a05

Please sign in to comment.