From f3fbd8dc14e8c734466bdedb92088dee102e5b41 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 28 Mar 2017 23:00:40 +1100 Subject: [PATCH] Renamed Company --- InvenTree/InvenTree/models.py | 4 ++-- InvenTree/supplier/models.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/InvenTree/InvenTree/models.py b/InvenTree/InvenTree/models.py index f18ae41488..efbddf5fc6 100644 --- a/InvenTree/InvenTree/models.py +++ b/InvenTree/InvenTree/models.py @@ -4,8 +4,8 @@ from django.db import models from django.core.exceptions import ObjectDoesNotExist from django.contrib.contenttypes.models import ContentType -class ExternalEntity(models.Model): - """ Abstract model representing an external person / supplier / etc +class Company(models.Model): + """ Abstract model representing an external company """ class Meta: diff --git a/InvenTree/supplier/models.py b/InvenTree/supplier/models.py index 4be6f4315e..6af88f57a8 100644 --- a/InvenTree/supplier/models.py +++ b/InvenTree/supplier/models.py @@ -2,16 +2,16 @@ from __future__ import unicode_literals from django.db import models -from InvenTree.models import ExternalEntity +from InvenTree.models import Company from part.models import Part -class Supplier(ExternalEntity): +class Supplier(Company): """ Represents a manufacturer or supplier """ pass -class Customer(ExternalEntity): +class Customer(Company): pass class SupplierPart(models.Model):