mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PartAttachment attachment file is actually required!
This commit is contained in:
parent
a1461de297
commit
92632b2ef7
19
InvenTree/part/migrations/0028_auto_20190518_1627.py
Normal file
19
InvenTree/part/migrations/0028_auto_20190518_1627.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Generated by Django 2.2 on 2019-05-18 06:27
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import part.models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('part', '0027_auto_20190518_1620'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='partattachment',
|
||||||
|
name='attachment',
|
||||||
|
field=models.FileField(help_text='Select file to attach', upload_to=part.models.attach_file),
|
||||||
|
),
|
||||||
|
]
|
@ -641,7 +641,7 @@ class PartAttachment(models.Model):
|
|||||||
part = models.ForeignKey(Part, on_delete=models.CASCADE,
|
part = models.ForeignKey(Part, on_delete=models.CASCADE,
|
||||||
related_name='attachments')
|
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')
|
help_text='Select file to attach')
|
||||||
|
|
||||||
comment = models.CharField(max_length=100, help_text='File comment')
|
comment = models.CharField(max_length=100, help_text='File comment')
|
||||||
|
Loading…
Reference in New Issue
Block a user