mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Remove "required" attribute for order descriptions (#4595)
* Made the description field on the part model optional * Made the title field on the build model optional * Made the description field on the order model optional * Added migration files
This commit is contained in:
18
InvenTree/part/migrations/0104_alter_part_description.py
Normal file
18
InvenTree/part/migrations/0104_alter_part_description.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.18 on 2023-04-12 17:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('part', '0103_auto_20230317_0816'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='part',
|
||||
name='description',
|
||||
field=models.CharField(blank=True, help_text='Part description (optional)', max_length=250, verbose_name='Description'),
|
||||
),
|
||||
]
|
@ -856,9 +856,9 @@ class Part(InvenTreeBarcodeMixin, MetadataMixin, MPTTModel):
|
||||
)
|
||||
|
||||
description = models.CharField(
|
||||
max_length=250, blank=False,
|
||||
max_length=250, blank=True,
|
||||
verbose_name=_('Description'),
|
||||
help_text=_('Part description')
|
||||
help_text=_('Part description (optional)')
|
||||
)
|
||||
|
||||
keywords = models.CharField(
|
||||
|
Reference in New Issue
Block a user