2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-04 06:18:48 +00:00
InvenTree/InvenTree/company/migrations/0018_supplierpart_manufacturer.py
Oliver Walters 2695368651 Add migration to create a 'manufacturer' field to the SupplierPart model
(cherry picked from commit 890e938662ed4aff53ea9399b54a86359d23f23f)
2020-04-13 20:20:08 +10:00

20 lines
619 B
Python

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