mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Rename BuildItemAllocation to BuildItem
This commit is contained in:
parent
6326d6d050
commit
e25579141e
18
InvenTree/build/migrations/0005_auto_20190429_2229.py
Normal file
18
InvenTree/build/migrations/0005_auto_20190429_2229.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 2.2 on 2019-04-29 12:29
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stock', '0009_auto_20190428_0841'),
|
||||
('build', '0004_build_url'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameModel(
|
||||
old_name='BuildItemAllocation',
|
||||
new_name='BuildItem',
|
||||
),
|
||||
]
|
@ -116,8 +116,8 @@ class Build(models.Model):
|
||||
return self.status == self.COMPLETE
|
||||
|
||||
|
||||
class BuildItemAllocation(models.Model):
|
||||
""" A BuildItemAllocation links multiple StockItem objects to a Build.
|
||||
class BuildItem(models.Model):
|
||||
""" A BuildItem links multiple StockItem objects to a Build.
|
||||
These are used to allocate part stock to a build.
|
||||
Once the Build is completed, the parts are removed from stock and the
|
||||
BuildItemAllocation objects are removed.
|
||||
|
18
InvenTree/part/migrations/0013_auto_20190429_2229.py
Normal file
18
InvenTree/part/migrations/0013_auto_20190429_2229.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 2.2 on 2019-04-29 12:29
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('part', '0012_part_active'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='part',
|
||||
name='URL',
|
||||
field=models.URLField(blank=True, help_text='Link to external URL'),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue
Block a user