2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-30 09:20:03 +00:00

Spelling fix (#10896)

* spwan -> spawn

* Prioriy -> Priority

* Bump API version

* Fix spelling in migration file
This commit is contained in:
Oliver
2025-11-24 17:49:13 +11:00
committed by GitHub
parent 89e3d605c5
commit 7c7d7b6a21
3 changed files with 7 additions and 4 deletions

View File

@@ -1,11 +1,14 @@
"""InvenTree API version information.""" """InvenTree API version information."""
# InvenTree API version # 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.""" """Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """ 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 v426 -> 2025-11-19 : https://github.com/inventree/InvenTree/pull/10867
- Adds optional "price_breaks" filter to the SupplierPart API endpoint - Adds optional "price_breaks" filter to the SupplierPart API endpoint

View File

@@ -46,7 +46,7 @@ class Migration(migrations.Migration):
('headers', models.JSONField(blank=True, null=True)), ('headers', models.JSONField(blank=True, null=True)),
('full_message', models.TextField(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)), ('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)), ('delivery_options', models.JSONField(blank=True, null=True)),
('error_code', models.CharField(blank=True, max_length=50, null=True)), ('error_code', models.CharField(blank=True, max_length=50, null=True)),
('error_message', models.TextField(blank=True, null=True)), ('error_message', models.TextField(blank=True, null=True)),

View File

@@ -2653,7 +2653,7 @@ class EmailMessage(models.Model):
direction = models.CharField( direction = models.CharField(
max_length=50, blank=True, null=True, choices=EmailDirection.choices 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( delivery_options = models.JSONField(
blank=True, blank=True,
null=True, null=True,
@@ -2873,7 +2873,7 @@ def handle_event(sender, event, esp_name, **kwargs):
if TRACE_PROC: # pragma: no cover if TRACE_PROC: # pragma: no cover
@receiver(post_spawn) @receiver(post_spawn)
def spwan_callback(sender, proc_name, **kwargs): def spawn_callback(sender, proc_name, **kwargs):
"""Callback to patch in tracing support.""" """Callback to patch in tracing support."""
TRACE_PROV.add_span_processor(TRACE_PROC) TRACE_PROV.add_span_processor(TRACE_PROC)
trace.set_tracer_provider(TRACE_PROV) trace.set_tracer_provider(TRACE_PROV)