mirror of
https://github.com/inventree/InvenTree
synced 2025-07-29 08:43:20 +00:00
Renamed Company
This commit is contained in:
parent
7eb00e8d47
commit
f3fbd8dc14
2 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue