feedback changes and added mark all read

This commit is contained in:
abutalib-kiwi
2023-09-22 19:55:10 +05:30
parent d1a4b86b09
commit 3afd7fecf3
5 changed files with 9 additions and 6 deletions

View File

@ -149,7 +149,7 @@ class TaskListAPIView(viewsets.ModelViewSet):
def get_queryset(self):
queryset = JuniorTask.objects.filter(guardian__user=self.request.user
).select_related('junior', 'junior__auth'
).order_by('due_date', 'created_at')
).order_by('-created_at')
queryset = self.filter_queryset(queryset)
return queryset