mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-16 01:36:29 +00:00
Added helper functions, improved UI
This commit is contained in:
@@ -90,6 +90,10 @@ class InvenTreeTree(models.Model):
|
||||
|
||||
return unique
|
||||
|
||||
@property
|
||||
def has_children(self):
|
||||
return self.children.count() > 0
|
||||
|
||||
@property
|
||||
def children(self):
|
||||
contents = ContentType.objects.get_for_model(type(self))
|
||||
|
Reference in New Issue
Block a user