mirror of
https://github.com/inventree/InvenTree.git
synced 2025-09-23 11:00:18 +00:00
Add PART_VIRTUAL setting
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
# Generated by Django 3.0.7 on 2021-01-03 12:06
|
||||
# Generated by Django 3.0.7 on 2021-01-03 12:13
|
||||
|
||||
import InvenTree.fields
|
||||
import InvenTree.validators
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import markdownx.models
|
||||
import mptt.fields
|
||||
import part.settings
|
||||
|
||||
@@ -61,6 +62,11 @@ class Migration(migrations.Migration):
|
||||
name='name',
|
||||
field=models.CharField(help_text='Part name', max_length=100, validators=[InvenTree.validators.validate_part_name], verbose_name='Name'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='part',
|
||||
name='notes',
|
||||
field=markdownx.models.MarkdownxField(blank=True, help_text='Part notes - supports Markdown formatting', null=True, verbose_name='Notes'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='part',
|
||||
name='revision',
|
||||
@@ -71,4 +77,9 @@ class Migration(migrations.Migration):
|
||||
name='variant_of',
|
||||
field=models.ForeignKey(blank=True, help_text='Is this part a variant of another part?', limit_choices_to={'active': True, 'is_template': True}, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='variants', to='part.Part', verbose_name='Variant Of'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='part',
|
||||
name='virtual',
|
||||
field=models.BooleanField(default=part.settings.part_virtual_default, help_text='Is this a virtual part, such as a software product or license?', verbose_name='Virtual'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user