2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Version bump (#5740)

* Updated all dependencies

* fixed some spelling errors

* More spelling corrections

* Fixes for changes in react-query
This commit is contained in:
Matthias Mair
2023-10-17 22:27:28 +02:00
committed by GitHub
parent 9f2c55d2d6
commit 158a209a0f
32 changed files with 416 additions and 401 deletions

View File

@ -18,7 +18,7 @@ from .validators import AllowedURLValidator, allowable_url_schemes
class InvenTreeRestURLField(RestURLField):
"""Custom field for DRF with custom scheme vaildators."""
"""Custom field for DRF with custom scheme validators."""
def __init__(self, **kwargs):
"""Update schemes."""

View File

@ -214,7 +214,7 @@ class CustomSignupForm(SignupForm):
set_form_field_order(self, ["username", "email", "email2", "password1", "password2", ])
def clean(self):
"""Make sure the supllied emails match if enabled in settings."""
"""Make sure the supplied emails match if enabled in settings."""
cleaned_data = super().clean()
# check for two mail fields

View File

@ -88,10 +88,10 @@ class CleanMixin():
`ugly`. Prevents XSS on the server-level.
Args:
data (dict): Data that should be sanatized.
data (dict): Data that should be Sanitized.
Returns:
dict: Provided data sanatized; still in the same order.
dict: Provided data Sanitized; still in the same order.
"""
clean_data = {}

View File

@ -44,7 +44,7 @@ ALLOWED_ATTRIBUTES_SVG = [
def sanitize_svg(file_data, strip: bool = True, elements: str = ALLOWED_ELEMENTS_SVG, attributes: str = ALLOWED_ATTRIBUTES_SVG) -> str:
"""Sanatize a SVG file.
"""Sanitize a SVG file.
Args:
file_data (str): SVG as string.

View File

@ -17,7 +17,7 @@ logger = logging.getLogger("inventree")
def is_worker_running(**kwargs):
"""Return True if the background worker process is oprational."""
"""Return True if the background worker process is operational."""
clusters = Stat.get_all()
if len(clusters) > 0:

View File

@ -35,7 +35,7 @@ class NotificationMethod:
This checks that:
- All needed functions are implemented
- The method is not disabled via plugin
- All needed contaxt values were provided
- All needed context values were provided
"""
# Check if a sending fnc is defined
if (not hasattr(self, 'send')) and (not hasattr(self, 'send_bulk')):

View File

@ -286,7 +286,7 @@ class TestAddressMigration(MigratorTestCase):
migrate_from = ('company', '0063_auto_20230502_1956')
migrate_to = ('company', '0064_move_address_field_to_address_model')
# Setting up string values for re-use
# Setting up string values for reuse
short_l1 = 'Less than 50 characters long address'
long_l1 = 'More than 50 characters long address testing line '
l2 = 'splitting functionality'

View File

@ -73,7 +73,7 @@ class SupplierPartPackUnitsTests(InvenTreeTestCase):
SKU='TEST-SKU'
)
# All these values are valid for a part with dimesion 'm'
# All these values are valid for a part with dimension 'm'
pass_tests = {
'': 1,
'1': 1,

View File

@ -443,7 +443,7 @@ class PurchaseOrderTest(OrderTest):
url = reverse('api-po-cancel', kwargs={'pk': po.pk})
# Try to cancel the PO, but without reqiured permissions
# Try to cancel the PO, but without required permissions
self.post(url, {}, expected_code=403)
self.assignRole('purchase_order.add')

View File

@ -403,7 +403,7 @@ class PartThumbs(ListAPI):
serializer_class = part_serializers.PartThumbSerializer
def get_queryset(self):
"""Return a queryset which exlcudes any parts without images"""
"""Return a queryset which excludes any parts without images"""
queryset = super().get_queryset()
# Get all Parts which have an associated image
@ -1219,11 +1219,11 @@ class PartList(PartMixin, APIDownloadMixin, ListCreateAPI):
except (ValueError, PartCategory.DoesNotExist):
pass
queryset = self.filter_parameteric_data(queryset)
queryset = self.filter_parametric_data(queryset)
return queryset
def filter_parameteric_data(self, queryset):
def filter_parametric_data(self, queryset):
"""Filter queryset against part parameters.
Here we can perform a number of different functions:

View File

@ -217,7 +217,7 @@ class ReportPrintMixin:
report_name += '.pdf'
if debug_mode:
"""Contatenate all rendered templates into a single HTML string, and return the string as a HTML response."""
"""Concatenate all rendered templates into a single HTML string, and return the string as a HTML response."""
html = "\n".join(outputs)

View File

@ -449,7 +449,7 @@ function barcodeScanDialog(options={}) {
/*
* Dialog for linking a particular barcode to a database model instsance
* Dialog for linking a particular barcode to a database model instance
*/
function linkBarcodeDialog(data, options={}) {

View File

@ -546,7 +546,7 @@ function receiveReturnOrderItems(order_id, line_items, options={}) {
fields: {
location: {
filters: {
strucutral: false,
structural: false,
},
tree_picker: {
url: '{% url "api-location-tree" %}',

View File

@ -828,7 +828,7 @@ function getPartParameterTemplateFilters() {
}
// Return a dictionary of filters for the "parameteric part" table
// Return a dictionary of filters for the "parametric part" table
function getParametricPartTableFilters() {
let filters = getPartTableFilters();