mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-04 04:30:56 +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:
.github
.pre-commit-config.yamlCONTRIBUTING.mdInvenTree
InvenTree
api.pyapi_version.pyapps.pyci_render_js.pyconfig.pyexceptions.pyfilters.pyformat.pyforms.pyhelpers.pyhelpers_model.pymetadata.pymiddleware.pymixins.pymodels.pyserializers.pysettings.pytasks.pytest_middleware.pytest_tasks.pytests.pyunit_test.pyurls.pyviews.py
management
commands
build
common
company
label
order
part
api.pybom.pyfilters.py
fixtures
migrations
models.pytasks.pytemplatetags
test_api.pytest_bom_item.pytest_category.pytest_migrations.pytest_part.pyviews.pyplugin
apps.pyserializers.py
base
action
barcodes
event
integration
locate
builtin
helpers.pyplugin.pyregistry.pysamples
integration
templatetags
test_api.pytest_plugin.pyreport
stock
templates
InvenTree
account
js
users
ci
contrib
docker-compose.ymldocker
docs
README.md
tasks.pydocs
@ -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