equal
deleted
inserted
replaced
67 return show_msg(user, "You are not authorised to upload data to this task", task_url, "view the task") |
67 return show_msg(user, "You are not authorised to upload data to this task", task_url, "view the task") |
68 |
68 |
69 form = WorkReportForm(request.POST, request.FILES) |
69 form = WorkReportForm(request.POST, request.FILES) |
70 |
70 |
71 if form.is_valid(): |
71 if form.is_valid(): |
72 r = WorkReport(attachment = form.cleaned_data['remarks'], |
72 r = WorkReport(attachment = form.cleaned_data['attachment'], |
73 remarks = form.cleaned_data['remarks'], |
73 remarks = form.cleaned_data['remarks'], |
74 revision = old_reports.count(), |
74 revision = old_reports.count(), |
75 task = task, |
75 task = task, |
76 submitted_by = user, |
76 submitted_by = user, |
77 created_at = datetime.now(), |
77 created_at = datetime.now(), |