mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Part attachment comment field is required
This commit is contained in:
parent
a2dbdfe794
commit
613c96e093
18
InvenTree/part/migrations/0027_auto_20190518_1620.py
Normal file
18
InvenTree/part/migrations/0027_auto_20190518_1620.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 2.2 on 2019-05-18 06:20
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('part', '0026_remove_supplierpart_single_price'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='partattachment',
|
||||
name='comment',
|
||||
field=models.CharField(help_text='File comment', max_length=100),
|
||||
),
|
||||
]
|
@ -644,7 +644,7 @@ class PartAttachment(models.Model):
|
||||
attachment = models.FileField(upload_to=attach_file, null=True, blank=True,
|
||||
help_text='Select file to attach')
|
||||
|
||||
comment = models.CharField(max_length=100, blank=True, help_text='File comment')
|
||||
comment = models.CharField(max_length=100, help_text='File comment')
|
||||
|
||||
@property
|
||||
def basename(self):
|
||||
|
Loading…
Reference in New Issue
Block a user