mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-03 20:20:58 +00:00
Add a reference to a build for a stock item
This commit is contained in:
20
InvenTree/stock/migrations/0010_stockitem_build.py
Normal file
20
InvenTree/stock/migrations/0010_stockitem_build.py
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated by Django 2.2.4 on 2019-09-01 13:08
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('build', '0005_auto_20190604_2217'),
|
||||
('stock', '0009_auto_20190715_2351'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='stockitem',
|
||||
name='build',
|
||||
field=models.ForeignKey(blank=True, help_text='Build for this stock item', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='build_outputs', to='build.Build'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user