mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add migration to create a 'manufacturer' field to the SupplierPart model
(cherry picked from commit 890e938662
)
This commit is contained in:
parent
00315aa855
commit
2695368651
@ -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'),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue
Block a user