From 26953686515270497cf2361f4a20039603f2f1bd Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 13 Apr 2020 17:03:22 +1000 Subject: [PATCH] Add migration to create a 'manufacturer' field to the SupplierPart model (cherry picked from commit 890e938662ed4aff53ea9399b54a86359d23f23f) --- .../0018_supplierpart_manufacturer.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 InvenTree/company/migrations/0018_supplierpart_manufacturer.py diff --git a/InvenTree/company/migrations/0018_supplierpart_manufacturer.py b/InvenTree/company/migrations/0018_supplierpart_manufacturer.py new file mode 100644 index 0000000000..48c4461379 --- /dev/null +++ b/InvenTree/company/migrations/0018_supplierpart_manufacturer.py @@ -0,0 +1,19 @@ +# Generated by Django 2.2.10 on 2020-04-13 03:29 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('company', '0017_auto_20200413_0320'), + ] + + operations = [ + migrations.AddField( + model_name='supplierpart', + name='manufacturer', + field=models.ForeignKey(blank=True, help_text='Select manufacturer', limit_choices_to={'is_manufacturer': True}, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='manufactured_parts', to='company.Company'), + ), + ]