From 7c7d7b6a21c5d255cf7bc568a5f182887ce72166 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 24 Nov 2025 17:49:13 +1100 Subject: [PATCH] Spelling fix (#10896) * spwan -> spawn * Prioriy -> Priority * Bump API version * Fix spelling in migration file --- src/backend/InvenTree/InvenTree/api_version.py | 5 ++++- .../common/migrations/0039_emailthread_emailmessage.py | 2 +- src/backend/InvenTree/common/models.py | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/backend/InvenTree/InvenTree/api_version.py b/src/backend/InvenTree/InvenTree/api_version.py index a8b8523018..bc0d0c5bcd 100644 --- a/src/backend/InvenTree/InvenTree/api_version.py +++ b/src/backend/InvenTree/InvenTree/api_version.py @@ -1,11 +1,14 @@ """InvenTree API version information.""" # InvenTree API version -INVENTREE_API_VERSION = 426 +INVENTREE_API_VERSION = 427 """Increment this API version number whenever there is a significant change to the API that any clients need to know about.""" INVENTREE_API_TEXT = """ +v427 -> 2025-11-24 : https://github.com/inventree/InvenTree/pull/10896 + - Fixes a spelling mistake in the API field labels + v426 -> 2025-11-19 : https://github.com/inventree/InvenTree/pull/10867 - Adds optional "price_breaks" filter to the SupplierPart API endpoint diff --git a/src/backend/InvenTree/common/migrations/0039_emailthread_emailmessage.py b/src/backend/InvenTree/common/migrations/0039_emailthread_emailmessage.py index 540e6f02da..cf20c7d4d8 100644 --- a/src/backend/InvenTree/common/migrations/0039_emailthread_emailmessage.py +++ b/src/backend/InvenTree/common/migrations/0039_emailthread_emailmessage.py @@ -46,7 +46,7 @@ class Migration(migrations.Migration): ('headers', models.JSONField(blank=True, null=True)), ('full_message', models.TextField(blank=True, null=True)), ('direction', models.CharField(blank=True, choices=[('I', 'Inbound'), ('O', 'Outbound')], max_length=50, null=True)), - ('priority', models.IntegerField(choices=[(0, 'None'), (1, 'Very High'), (2, 'High'), (3, 'Normal'), (4, 'Low'), (5, 'Very Low')], verbose_name='Prioriy')), + ('priority', models.IntegerField(choices=[(0, 'None'), (1, 'Very High'), (2, 'High'), (3, 'Normal'), (4, 'Low'), (5, 'Very Low')], verbose_name='Priority')), ('delivery_options', models.JSONField(blank=True, null=True)), ('error_code', models.CharField(blank=True, max_length=50, null=True)), ('error_message', models.TextField(blank=True, null=True)), diff --git a/src/backend/InvenTree/common/models.py b/src/backend/InvenTree/common/models.py index 7c7266c2ef..9104ee04d1 100644 --- a/src/backend/InvenTree/common/models.py +++ b/src/backend/InvenTree/common/models.py @@ -2653,7 +2653,7 @@ class EmailMessage(models.Model): direction = models.CharField( max_length=50, blank=True, null=True, choices=EmailDirection.choices ) - priority = models.IntegerField(verbose_name=_('Prioriy'), choices=Priority) + priority = models.IntegerField(verbose_name=_('Priority'), choices=Priority) delivery_options = models.JSONField( blank=True, null=True, @@ -2873,7 +2873,7 @@ def handle_event(sender, event, esp_name, **kwargs): if TRACE_PROC: # pragma: no cover @receiver(post_spawn) - def spwan_callback(sender, proc_name, **kwargs): + def spawn_callback(sender, proc_name, **kwargs): """Callback to patch in tracing support.""" TRACE_PROV.add_span_processor(TRACE_PROC) trace.set_tracer_provider(TRACE_PROV)