app/projrev/views/proposal.py
changeset 26 97bd3c28c957
parent 23 91cf6872d853
child 27 37612f295cd4
equal deleted inserted replaced
25:a6a5e45f68c8 26:97bd3c28c957
   243 
   243 
   244   if rev_form.is_valid():
   244   if rev_form.is_valid():
   245     cleaned_data = rev_form.cleaned_data
   245     cleaned_data = rev_form.cleaned_data
   246 
   246 
   247     cleaned_data['project'] = Project.objects.get(micr_code=micr_code)
   247     cleaned_data['project'] = Project.objects.get(micr_code=micr_code)
       
   248     cleaned_data['reviewer'] = request.user
   248 
   249 
   249     # If the form is valid create a new project or update the project
   250     # If the form is valid create a new project or update the project
   250     # if it already exists from the form.
   251     # if it already exists from the form.
   251     review = rev_form.save()
   252     review = rev_form.save()
   252 
   253