|
|
|
@ -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, type='Task' type_id=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, type='Task' type_id=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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|