mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
Rename field part.has_variants to part.is_template
This commit is contained in:
19
InvenTree/company/migrations/0005_auto_20190525_2356.py
Normal file
19
InvenTree/company/migrations/0005_auto_20190525_2356.py
Normal file
@ -0,0 +1,19 @@
|
||||
# Generated by Django 2.2 on 2019-05-25 13:56
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('company', '0004_auto_20190525_2354'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='supplierpart',
|
||||
name='part',
|
||||
field=models.ForeignKey(help_text='Select part', limit_choices_to={'is_template': False, 'purchaseable': True}, on_delete=django.db.models.deletion.CASCADE, related_name='supplier_parts', to='part.Part'),
|
||||
),
|
||||
]
|
@ -190,7 +190,7 @@ class SupplierPart(models.Model):
|
||||
related_name='supplier_parts',
|
||||
limit_choices_to={
|
||||
'purchaseable': True,
|
||||
'has_variants': False,
|
||||
'is_template': False,
|
||||
},
|
||||
help_text='Select part',
|
||||
)
|
||||
|
Reference in New Issue
Block a user