From 9c7813992de4a89eaf0d056271b8f3f8f1d7061e Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 13 Apr 2020 20:26:24 +1000 Subject: [PATCH] Remove old 'manufacturer_name' field --- InvenTree/company/forms.py | 2 -- ...021_remove_supplierpart_manufacturer_name.py | 17 +++++++++++++++++ InvenTree/company/models.py | 2 -- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 InvenTree/company/migrations/0021_remove_supplierpart_manufacturer_name.py diff --git a/InvenTree/company/forms.py b/InvenTree/company/forms.py index 3b3a99ef59..003cfaf495 100644 --- a/InvenTree/company/forms.py +++ b/InvenTree/company/forms.py @@ -53,14 +53,12 @@ class EditSupplierPartForm(HelperForm): 'SKU', 'description', 'manufacturer', - 'manufacturer_name', 'MPN', 'link', 'note', 'base_cost', 'multiple', 'packaging', - # 'lead_time' ] diff --git a/InvenTree/company/migrations/0021_remove_supplierpart_manufacturer_name.py b/InvenTree/company/migrations/0021_remove_supplierpart_manufacturer_name.py new file mode 100644 index 0000000000..f90a1372b9 --- /dev/null +++ b/InvenTree/company/migrations/0021_remove_supplierpart_manufacturer_name.py @@ -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', + ), + ] diff --git a/InvenTree/company/models.py b/InvenTree/company/models.py index 7ebd36427b..3b8f058bfd 100644 --- a/InvenTree/company/models.py +++ b/InvenTree/company/models.py @@ -293,8 +293,6 @@ class SupplierPart(models.Model): 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')) link = InvenTreeURLField(blank=True, help_text=_('URL for external supplier part link'))