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

typo fix

parent a0a43099
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -476,7 +476,7 @@ def delete_collection(user: User, collection_id: int, recursive: bool = False) -
                descendant_collection_instance.soft_delete()

    # do not allow to delete collection with content
    if collection_instance.resources.filter(deleted_at__is_null=True).count() > 0:
    if collection_instance.resources.filter(deleted_at__isnull=True).count() > 0:
        return {"success": False, "status": "collection has resources"}
    if len(collection_instance.children()) > 0:
        return {"success": False, "status": "collection has descendants"}