Remove 'active' field

- Will work this change in at a later date
This commit is contained in:
Oliver Walters 2019-11-16 20:13:51 +11:00
parent 339126b27a
commit 0effb584b9

View File

@ -121,7 +121,6 @@ class StockItem(models.Model):
build: Link to a Build (if this stock item was created from a build)
purchase_order: Link to a PurchaseOrder (if this stock item was created from a PurchaseOrder)
infinite: If True this StockItem can never be exhausted
active: True (by default) unless the StockItem has been 'deleted'
"""
def save(self, *args, **kwargs):
@ -365,8 +364,6 @@ class StockItem(models.Model):
infinite = models.BooleanField(default=False)
active = models.BooleanField(default=True)
def can_delete(self):
""" Can this stock item be deleted? It can NOT be deleted under the following circumstances: