Commit a7ccb0c8 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

recycle bin order by

parent 0b8c7cfb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2278,7 +2278,7 @@ def recycle_bin(user: User, project_id: int) -> List[Dict]:
    results = []
    for collection_instance in Collection.objects.filter(
        deleted_at__isnull=False, project_id=project_id
    ):
    ).order_by("-deleted_at"):
        results.append(
            {
                "object_type": "collection",
@@ -2289,7 +2289,7 @@ def recycle_bin(user: User, project_id: int) -> List[Dict]:
        )
    for resource_instance in Resource.objects.filter(
        deleted_at__isnull=False, ptr_project_id=project_id
    ):
    ).order_by("-deleted_at"):
        results.append(
            {
                "object_type": "resource",