2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 19:45:46 +00:00

Improved speed of stock tree

This commit is contained in:
Oliver Walters
2019-06-18 00:09:42 +10:00
parent a796b984ff
commit 642660d76e
3 changed files with 20 additions and 12 deletions

View File

@ -66,9 +66,8 @@ class PartCategory(InvenTreeTree):
@property
def item_count(self):
return self.partcount
return self.partcount()
@property
def partcount(self, cascade=True, active=True):
""" Return the total part count under this category
(including children of child categories)