extend part fields to fit large BOMs (#4475)

Fiexes https://github.com/inventree/InvenTree/issues/2819
This commit is contained in:
Matthias Mair 2023-03-08 23:35:12 +01:00 committed by GitHub
parent 2edb7f2b55
commit 93a2d612e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.18 on 2023-03-08 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('part', '0099_alter_bomitem_inherited'),
]
operations = [
migrations.AlterField(
model_name='bomitem',
name='reference',
field=models.CharField(blank=True, help_text='BOM item reference', max_length=5000, verbose_name='Reference'),
),
]

View File

@ -3583,7 +3583,7 @@ class BomItem(DataImportMixin, models.Model):
help_text=_('Estimated build wastage quantity (absolute or percentage)')
)
reference = models.CharField(max_length=500, blank=True, verbose_name=_('Reference'), help_text=_('BOM item reference'))
reference = models.CharField(max_length=5000, blank=True, verbose_name=_('Reference'), help_text=_('BOM item reference'))
# Note attached to this BOM line item
note = models.CharField(max_length=500, blank=True, verbose_name=_('Note'), help_text=_('BOM item notes'))