2
0
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:
Oliver
2017-04-11 23:07:02 +10:00
parent 15582369d2
commit 3704ad34dc
3 changed files with 5 additions and 15 deletions

View File

@ -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):