From 613c96e0939875e5ed72d3357a48695eb5d8a058 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 18 May 2019 16:20:48 +1000 Subject: [PATCH] Part attachment comment field is required --- .../part/migrations/0027_auto_20190518_1620.py | 18 ++++++++++++++++++ InvenTree/part/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 InvenTree/part/migrations/0027_auto_20190518_1620.py diff --git a/InvenTree/part/migrations/0027_auto_20190518_1620.py b/InvenTree/part/migrations/0027_auto_20190518_1620.py new file mode 100644 index 0000000000..85ed3e6be2 --- /dev/null +++ b/InvenTree/part/migrations/0027_auto_20190518_1620.py @@ -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), + ), + ] diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 1aa52342a9..54ca522cb0 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -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):