2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +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:
Matthias Mair
2023-06-03 16:04:52 +02:00
committed by GitHub
parent 5e2bfaa43a
commit 21ed4b2081
161 changed files with 344 additions and 334 deletions

View File

@ -98,7 +98,7 @@ class RoleGroupAdmin(admin.ModelAdmin): # pragma: no cover
break
def append_permission_level(permission_level, next_level):
"""Appen permission level"""
"""Append permission level"""
if not permission_level:
return next_level

View File

@ -303,7 +303,7 @@ class RuleSet(models.Model):
return self.name
def save(self, *args, **kwargs):
"""Intercept the 'save' functionality to make addtional permission changes:
"""Intercept the 'save' functionality to make additional permission changes:
It does not make sense to be able to change / create something,
but not be able to view it!
@ -355,7 +355,7 @@ def update_group_roles(group, debug=False):
This function is called under the following conditions:
a) Whenever the InvenTree database is launched
b) Whenver the group object is updated
b) Whenever the group object is updated
The RuleSet model has complete control over the permissions applied to any group.
"""