Renamed Company

This commit is contained in:
Oliver Walters 2017-03-28 23:00:40 +11:00
parent 7eb00e8d47
commit f3fbd8dc14
2 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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):