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:
@ -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 """
|
||||
|
Reference in New Issue
Block a user