Skip to content

Commit

Permalink
update kwarg for Part.isUsedIn() (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobfelknor authored May 9, 2024
1 parent 15ec27f commit 8f180f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventree/part.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def getBomItems(self, **kwargs):

def isUsedIn(self):
""" Return a list of all the parts this part is used in """
return BomItem.list(self._api, sub_part=self.pk)
return BomItem.list(self._api, uses=self.pk)

def getBuilds(self, **kwargs):
""" Return the builds associated with this part """
Expand Down

0 comments on commit 8f180f4

Please sign in to comment.