Files
InvenTree/InvenTree
Oliver fd0a57c4a1 Improve deletion behaviour for InvenTreeTree model (#5806)
* Improve deletion behaviour for InvenTreeTree model

- Remove recursive call to function
- Handle database operations as bulk queries
- Ensure child nodes have their pathstring updated correctly
- Remove old @receiver hook
- Refactor StockLocation.delete method
- Refactor PartCategory.delete method
- Atomic transactions potentially problematic here

* Add docstring

* Fix method name

* Use bulk-update instead of recursive save when pathstring changes

* Improvements for tree delete method

- Handle case where item has already been deleted

* Raise exception rather than simply logging

* Update unit tests

* Improvements to unrelated unit test

* Fix urls.md

* Fix typo
2023-10-30 06:57:40 +11:00
..
2023-10-29 23:13:38 +11:00
2023-10-26 21:49:38 +11:00
2023-10-27 09:06:48 +11:00
2023-10-27 09:06:48 +11:00
2023-10-27 09:06:48 +11:00
2023-10-29 23:13:38 +11:00
2023-10-23 22:33:16 +11:00
2023-10-23 22:33:16 +11:00