2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

Updated API URLs

This commit is contained in:
Oliver
2017-04-11 09:41:03 +10:00
parent 9a9a039fc9
commit e06121ebda
9 changed files with 144 additions and 71 deletions

View File

@ -15,6 +15,12 @@ class PartCategory(InvenTreeTree):
verbose_name = "Part Category"
verbose_name_plural = "Part Categories"
@property
def parts(self):
parts_list = self.part_set.all()
print(parts_list)
return parts_list
class Part(models.Model):
""" Represents a """