|
|
|
@ -935,7 +935,7 @@ def projects_dashboard(request):
|
|
|
|
|
end_date = parse_date(end_date_str) if end_date_str else None
|
|
|
|
|
|
|
|
|
|
# Filter points based on parameters
|
|
|
|
|
points = Point.objects.select_related('task__project', 'task__assigned_to').prefetch_related('pointactivity_set').order_by('-pointactivity__end_time')
|
|
|
|
|
points = Point.objects.select_related('task__project', 'task__assigned_to').prefetch_related('pointactivity_set').order_by('-id')
|
|
|
|
|
|
|
|
|
|
if selected_project_ids:
|
|
|
|
|
points = points.filter(task__project__id__in=selected_project_ids)
|
|
|
|
|