From cedf9a91085af9648f51881c8e579641b3a1973c Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 13 May 2020 10:16:26 +1000 Subject: [PATCH] Attachment comment field is optional --- InvenTree/InvenTree/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/models.py b/InvenTree/InvenTree/models.py index e192e34a0f..5ec2e2945d 100644 --- a/InvenTree/InvenTree/models.py +++ b/InvenTree/InvenTree/models.py @@ -56,7 +56,7 @@ class InvenTreeAttachment(models.Model): attachment = models.FileField(upload_to=rename_attachment, help_text=_('Select file to attach')) - comment = models.CharField(max_length=100, help_text=_('File comment')) + comment = models.CharField(blank=True, max_length=100, help_text=_('File comment')) user = models.ForeignKey( User,