mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
Updated part API
This commit is contained in:
@ -16,8 +16,7 @@ class PartCategory(InvenTreeTree):
|
||||
|
||||
@property
|
||||
def parts(self):
|
||||
parts_list = self.part_set.all()
|
||||
return parts_list
|
||||
return self.part_set.all()
|
||||
|
||||
|
||||
class Part(models.Model):
|
||||
|
Reference in New Issue
Block a user