mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add some more fields to the PartTestTemplate model
This commit is contained in:
parent
1c67bb6026
commit
e8c402ecd9
33
InvenTree/part/migrations/0042_auto_20200518_0900.py
Normal file
33
InvenTree/part/migrations/0042_auto_20200518_0900.py
Normal file
@ -0,0 +1,33 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-18 09:00
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('part', '0041_auto_20200517_0348'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='parttesttemplate',
|
||||
name='description',
|
||||
field=models.CharField(help_text='Enter description for this test', max_length=100, null=True, verbose_name='Test Description'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='parttesttemplate',
|
||||
name='requires_attachment',
|
||||
field=models.BooleanField(default=False, help_text='Does this test require a file attachment when adding a test result?', verbose_name='Requires Attachment'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='parttesttemplate',
|
||||
name='requires_value',
|
||||
field=models.BooleanField(default=False, help_text='Does this test require a value when adding a test result?', verbose_name='Requires Value'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='parttesttemplate',
|
||||
name='test_name',
|
||||
field=models.CharField(help_text='Enter a name for the test', max_length=100, verbose_name='Test Name'),
|
||||
),
|
||||
]
|
@ -1204,16 +1204,34 @@ class PartTestTemplate(models.Model):
|
||||
|
||||
test_name = models.CharField(
|
||||
blank=False, max_length=100,
|
||||
verbose_name=_("Test name"),
|
||||
verbose_name=_("Test Name"),
|
||||
help_text=_("Enter a name for the test")
|
||||
)
|
||||
|
||||
description = models.CharField(
|
||||
blank=False, null=True, max_length=100,
|
||||
verbose_name=_("Test Description"),
|
||||
help_text=_("Enter description for this test")
|
||||
)
|
||||
|
||||
required = models.BooleanField(
|
||||
default=True,
|
||||
verbose_name=_("Required"),
|
||||
help_text=_("Is this test required to pass?")
|
||||
)
|
||||
|
||||
requires_value = models.BooleanField(
|
||||
default=False,
|
||||
verbose_name=_("Requires Value"),
|
||||
help_text=_("Does this test require a value when adding a test result?")
|
||||
)
|
||||
|
||||
requires_attachment = models.BooleanField(
|
||||
default=False,
|
||||
verbose_name=_("Requires Attachment"),
|
||||
help_text=_("Does this test require a file attachment when adding a test result?")
|
||||
)
|
||||
|
||||
|
||||
class PartParameterTemplate(models.Model):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user