2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

PartAttachment attachment file is actually required!

This commit is contained in:
Oliver Walters
2019-05-18 16:28:15 +10:00
parent a1461de297
commit 92632b2ef7
2 changed files with 20 additions and 1 deletions

View File

@ -641,7 +641,7 @@ class PartAttachment(models.Model):
part = models.ForeignKey(Part, on_delete=models.CASCADE,
related_name='attachments')
attachment = models.FileField(upload_to=attach_file, null=True, blank=True,
attachment = models.FileField(upload_to=attach_file,
help_text='Select file to attach')
comment = models.CharField(max_length=100, help_text='File comment')