diff --git a/osinaweb/osinacore/edit/views.py b/osinaweb/osinacore/edit/views.py index 9d469f26..519933bc 100644 --- a/osinaweb/osinacore/edit/views.py +++ b/osinaweb/osinacore/edit/views.py @@ -444,11 +444,11 @@ def mark_point_working_on(request, point_id, task_id): if PointActivity.objects.filter(point=point).count() == 1: status_text = f'Started Working On: {point.text}' - status = Status(text=status_text, date_time=timezone.now(), staff=request.user.staffprofile, task=point.task.id) + status = Status(text=status_text, date_time=timezone.now(), staff=request.user.staffprofile, type='Task' type_id=point.task.id) status.save() else: status_text = f'Resumed Working On: {point.text}' - status = Status(text=status_text, date_time=timezone.now(), staff=request.user.staffprofile, task=point.task.id) + status = Status(text=status_text, date_time=timezone.now(), staff=request.user.staffprofile, type='Task' type_id=point.task.id) status.save()