mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Update views.py
This commit is contained in:
parent
31e71aab83
commit
9fe611a24c
@ -2233,7 +2233,7 @@ class TasksViewSet(ReadOnlyModelViewSet):
|
||||
filterset_class = PaperlessTaskFilterSet
|
||||
|
||||
def get_queryset(self):
|
||||
queryset = PaperlessTask.objects.all().order_by("date_created").reverse()
|
||||
queryset = PaperlessTask.objects.all().order_by("-date_created")
|
||||
task_id = self.request.query_params.get("task_id")
|
||||
if task_id is not None:
|
||||
queryset = PaperlessTask.objects.filter(task_id=task_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user