PEP fixes

This commit is contained in:
Oliver Walters 2017-03-28 23:09:51 +11:00
parent f4ef9d938e
commit 09cb067627
2 changed files with 37 additions and 34 deletions

View File

@ -5,15 +5,18 @@ from django.db import models
from InvenTree.models import Company
from part.models import Part
class Supplier(Company):
""" Represents a manufacturer or supplier
"""
pass
class Customer(Company):
pass
class SupplierPart(models.Model):
""" Represents a unique part as provided by a Supplier
Each SupplierPart is identified by a MPN (Manufacturer Part Number)

View File

@ -6,6 +6,7 @@ from django.contrib.auth.models import User
from supplier.models import Customer
from part.models import Part, PartRevision
class UniquePart(models.Model):
""" A unique instance of a Part object.
Used for tracking parts based on serial numbers,
@ -48,6 +49,7 @@ class UniquePart(models.Model):
def __str__(self):
return self.part.name
class PartTrackingInfo(models.Model):
""" Single data-point in the life of a UniquePart
Each time something happens to the UniquePart,
@ -58,5 +60,3 @@ class PartTrackingInfo(models.Model):
date = models.DateField(auto_now_add=True,
editable=False)
notes = models.CharField(max_length=500)