InvenTree/InvenTree/part
Miklós Márton f6cfc12343
Add option to recursively delete part categories (#3435)
* Add option to recursively delete part categories

Fixes #3384

* - Added test (broken ATM)
- Refactored parameters to booleanish

* Fix styling issues reported by flake8

* Working on unit testing

* Added on_commit debugging callback

* Separate the recursive part of the deletion into another method
to make sure that the delete operation is performed in a single transaction

* Trying transactions with @transactions.atomic

* Fix flake8 reported issues

* Removed unused debug callback

* Fixed tests for category recursive deletion

* Fix flake reported issues

* Fix flake reported issues
Again

* Remove unrelated formatting changes

* Fixed a part of review comments
2022-11-08 11:57:00 +11:00
..
fixtures Allow searching of BOM List API endpoint (#3296) 2022-07-06 10:09:58 +10:00
migrations Remove special character restrictions in parameter template names (#3883) 2022-10-31 11:28:49 +11:00
templates/part Location barcode actions (#3887) 2022-11-01 22:18:10 +11:00
templatetags Custom splash screen (#3499) 2022-08-09 09:42:53 +10:00
__init__.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
admin.py Merge pull request from GHSA-7rq4-qcpw-74gq 2022-06-15 18:32:35 +10:00
api.py Add option to recursively delete part categories (#3435) 2022-11-08 11:57:00 +11:00
apps.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
bom.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
filters.py Feature: Supplier part pack size (#3644) 2022-09-08 09:49:14 +10:00
forms.py Refctor image downloader (#3393) 2022-07-25 11:17:59 +10:00
models.py Add option to recursively delete part categories (#3435) 2022-11-08 11:57:00 +11:00
serializers.py Add 'barcode_hash' data to more API serializers: (#3906) 2022-11-07 22:36:15 +11:00
settings.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
tasks.py Overdue order notification (#3114) 2022-06-06 19:12:29 +10:00
test_api.py Add option to recursively delete part categories (#3435) 2022-11-08 11:57:00 +11:00
test_bom_export.py Adds 'consumable' field to BomItem model (#2890) 2022-09-24 23:45:56 +10:00
test_bom_import.py Add more checks to pre-commit (#3132) 2022-06-06 08:56:52 +10:00
test_bom_item.py Adds 'consumable' field to BomItem model (#2890) 2022-09-24 23:45:56 +10:00
test_category.py Path name bug fix (#3694) 2022-09-20 19:02:08 +10:00
test_migrations.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_param.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_part.py Barcode Refactor (#3640) 2022-09-15 14:14:51 +10:00
test_views.py Set part category (#3134) 2022-06-06 13:00:30 +10:00
urls.py Remove broken URL (#3623) 2022-09-01 07:36:35 +10:00
views.py Switch to pathlib (#3392) 2022-07-27 10:42:34 +10:00