Add 'active' field to Part model

This commit is contained in:
Oliver Walters committed 2019-04-28 23:00:38 +10:00
1 parent 13756751c3
commit c2a35b6656
2 files changed
+21

No files matched your search

+3
View File
@@ -171,6 +171,9 @@ class Part(models.Model):
# Can this part be sold to customers?
salable = models.BooleanField(default=False, help_text="Can this part be sold to customers?")
# Is this part active?
active = models.BooleanField(default=True, help_text='Is this part active?')
notes = models.TextField(blank=True)
def __str__(self):