We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9236eaa commit a50d02dCopy full SHA for a50d02d
README.md
@@ -414,6 +414,21 @@ obj.is_sibling_of(target_obj)
414
cls.update_tree()
415
```
416
417
+### Bulk Operations
418
+
419
+To perform bulk operations it is recommended to turn off signals, then triggering the tree update at the end:
420
421
+```python
422
+from treenode.signals import no_signals
423
424
+with no_signals():
425
+ # execute custom bulk operations
426
+ pass
427
428
+# trigger tree update only once
429
+YourModel.update_tree()
430
+```
431
432
## Testing
433
```bash
434
# create python virtual environment
0 commit comments