mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Renamed 'stock' to 'stock_item'
This commit is contained in:
parent
e25579141e
commit
f42116c0d9
18
InvenTree/build/migrations/0006_auto_20190429_2233.py
Normal file
18
InvenTree/build/migrations/0006_auto_20190429_2233.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 2.2 on 2019-04-29 12:33
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('build', '0005_auto_20190429_2229'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='builditem',
|
||||
old_name='stock',
|
||||
new_name='stock_item',
|
||||
),
|
||||
]
|
@ -134,7 +134,7 @@ class BuildItem(models.Model):
|
||||
related_name='allocated_stock',
|
||||
)
|
||||
|
||||
stock = models.ForeignKey(
|
||||
stock_item = models.ForeignKey(
|
||||
'stock.StockItem',
|
||||
on_delete=models.CASCADE,
|
||||
related_name='allocations',
|
||||
|
Loading…
Reference in New Issue
Block a user