mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
1a2fb9e170
- StockItem cannot point to a part which is a template part
20 lines
560 B
Python
20 lines
560 B
Python
# Generated by Django 2.2 on 2019-05-25 12:26
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('stock', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name='stockitem',
|
|
name='part',
|
|
field=models.ForeignKey(help_text='Base part', limit_choices_to={'active': True, 'has_variants': True}, on_delete=django.db.models.deletion.CASCADE, related_name='stock_items', to='part.Part'),
|
|
),
|
|
]
|