Add migration to create a 'manufacturer' field to the SupplierPart model

(cherry picked from commit 890e938662)
This commit is contained in:
Oliver Walters 2020-04-13 17:03:22 +10:00
parent 00315aa855
commit 2695368651

View File

@ -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'),
),
]