2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-16 17:56:30 +00:00
- Improved some models
- Added PEP check script
This commit is contained in:
Oliver Walters
2017-03-29 08:37:41 +11:00
parent 4fafe93d9c
commit 68ae1110ad
6 changed files with 39 additions and 20 deletions

View File

@@ -38,7 +38,7 @@ class InvenTreeTree(models.Model):
abstract = True
name = models.CharField(max_length=100)
description = models.CharField(max_length=250)
description = models.CharField(max_length=250, blank=True)
parent = models.ForeignKey('self',
on_delete=models.CASCADE,
blank=True,
@@ -83,7 +83,7 @@ class InvenTreeTree(models.Model):
for a in available:
if a.id not in childs:
acceptable.append(a)
return acceptable
@property