mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Renamed Company
This commit is contained in:
parent
7eb00e8d47
commit
f3fbd8dc14
@ -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:
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user