mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-16 17:56:30 +00:00
Updates
- Improved some models - Added PEP check script
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user