mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 04:25: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/build/migrations/0041_alter_build_title.py
Normal file
18
InvenTree/build/migrations/0041_alter_build_title.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 = [
|
||||
('build', '0040_auto_20230404_1310'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='build',
|
||||
name='title',
|
||||
field=models.CharField(blank=True, help_text='Brief description of the build (optional)', max_length=100, verbose_name='Description'),
|
||||
),
|
||||
]
|
@ -164,9 +164,9 @@ class Build(MPTTModel, InvenTreeBarcodeMixin, MetadataMixin, ReferenceIndexingMi
|
||||
|
||||
title = models.CharField(
|
||||
verbose_name=_('Description'),
|
||||
blank=False,
|
||||
blank=True,
|
||||
max_length=100,
|
||||
help_text=_('Brief description of the build')
|
||||
help_text=_('Brief description of the build (optional)')
|
||||
)
|
||||
|
||||
parent = TreeForeignKey(
|
||||
|
Reference in New Issue
Block a user