Remove old 'manufacturer_name' field

This commit is contained in:
Oliver Walters 2020-04-13 20:26:24 +10:00
parent c17c014b33
commit 9c7813992d
3 changed files with 17 additions and 4 deletions

View File

@ -53,14 +53,12 @@ class EditSupplierPartForm(HelperForm):
'SKU', 'SKU',
'description', 'description',
'manufacturer', 'manufacturer',
'manufacturer_name',
'MPN', 'MPN',
'link', 'link',
'note', 'note',
'base_cost', 'base_cost',
'multiple', 'multiple',
'packaging', 'packaging',
# 'lead_time'
] ]

View File

@ -0,0 +1,17 @@
# Generated by Django 2.2.10 on 2020-04-13 10:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('company', '0020_auto_20200413_0839'),
]
operations = [
migrations.RemoveField(
model_name='supplierpart',
name='manufacturer_name',
),
]

View File

@ -293,8 +293,6 @@ class SupplierPart(models.Model):
null=True, blank=True null=True, blank=True
) )
manufacturer_name = models.CharField(max_length=100, blank=True, help_text=_('Manufacturer'))
MPN = models.CharField(max_length=100, blank=True, help_text=_('Manufacturer part number')) MPN = models.CharField(max_length=100, blank=True, help_text=_('Manufacturer part number'))
link = InvenTreeURLField(blank=True, help_text=_('URL for external supplier part link')) link = InvenTreeURLField(blank=True, help_text=_('URL for external supplier part link'))