diff --git a/InvenTree/build/migrations/0005_auto_20190429_2229.py b/InvenTree/build/migrations/0005_auto_20190429_2229.py new file mode 100644 index 0000000000..73ebca7e1b --- /dev/null +++ b/InvenTree/build/migrations/0005_auto_20190429_2229.py @@ -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', + ), + ] diff --git a/InvenTree/build/models.py b/InvenTree/build/models.py index 6d83f74bf3..a164db50ee 100644 --- a/InvenTree/build/models.py +++ b/InvenTree/build/models.py @@ -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. diff --git a/InvenTree/part/migrations/0013_auto_20190429_2229.py b/InvenTree/part/migrations/0013_auto_20190429_2229.py new file mode 100644 index 0000000000..9c339b18b1 --- /dev/null +++ b/InvenTree/part/migrations/0013_auto_20190429_2229.py @@ -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'), + ), + ]