emile 4 months ago
parent a990ba2d3b
commit 39d5600d3d

@ -444,11 +444,11 @@ def mark_point_working_on(request, point_id, task_id):
if PointActivity.objects.filter(point=point).count() == 1: if PointActivity.objects.filter(point=point).count() == 1:
status_text = f'Started Working On: {point.text}' 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() status.save()
else: else:
status_text = f'Resumed Working On: {point.text}' 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() status.save()

Loading…
Cancel
Save