mirror of
https://github.com/logos-co/open-law.git
synced 2025-01-24 13:49:26 +00:00
fix
This commit is contained in:
parent
5a7cdf00cc
commit
dbdb8aed73
@ -28,6 +28,8 @@ def delete_nested_version_entities(book_version: m.BookVersion):
|
|||||||
|
|
||||||
|
|
||||||
def delete_nested_collection_entities(collection: m.Collection):
|
def delete_nested_collection_entities(collection: m.Collection):
|
||||||
|
for sub_collection in collection.children:
|
||||||
|
delete_nested_collection_entities(sub_collection)
|
||||||
for section in collection.sections:
|
for section in collection.sections:
|
||||||
section: m.Section
|
section: m.Section
|
||||||
section.is_deleted = True
|
section.is_deleted = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user