Attachment comment field is optional

This commit is contained in:
Oliver Walters 2020-05-13 10:16:26 +10:00
parent a0e1645ca1
commit cedf9a9108

View File

@ -56,7 +56,7 @@ class InvenTreeAttachment(models.Model):
attachment = models.FileField(upload_to=rename_attachment, attachment = models.FileField(upload_to=rename_attachment,
help_text=_('Select file to attach')) 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 = models.ForeignKey(
User, User,