mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-04 16:22:50 +00:00
Fix common spelling mistakes (#4956)
* add codespell * first fixes * doc fixes * fix docstrings and comments * functional changes * docstrings again * and docs again * rename args * add ignore * use pre-commit for filtering instead * ups * fix typo in filter
This commit is contained in:
@@ -15,7 +15,7 @@ from inventree.part import Part, PartCategory
|
||||
from inventree.stock import StockItem
|
||||
|
||||
## Create a new PartCategory object,
|
||||
## underneath the existing category with pk 7. Leave the parent empty fpr a top level category
|
||||
## underneath the existing category with pk 7. Leave the parent empty for a top level category
|
||||
furniture = PartCategory.create(api, {
|
||||
'name': 'Furniture',
|
||||
'description': 'Chairs, tables, etc',
|
||||
|
@@ -115,7 +115,7 @@ parent_categories = PartCategory.list(api, parent='')
|
||||
|
||||
### Item Attributes
|
||||
|
||||
The available model attributes are determined by introspecting [API metadata](../metadata.md). To view the fields (attributes) availabel for a given database model type within the python interface, use the `fieldNames` and `fieldInfo` methods, as below:
|
||||
The available model attributes are determined by introspecting [API metadata](../metadata.md). To view the fields (attributes) available for a given database model type within the python interface, use the `fieldNames` and `fieldInfo` methods, as below:
|
||||
|
||||
```python
|
||||
from inventree.api import InvenTreeAPI
|
||||
|
Reference in New Issue
Block a user