mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 10:35:40 +00:00
Add serializer and API endpoint for BomItemSubstitute class
This commit is contained in:
@ -2623,6 +2623,10 @@ class BomItemSubstitute(models.Model):
|
||||
part: The part which can be used as a substitute
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def get_api_url():
|
||||
return reverse('api-bom-substitute-list')
|
||||
|
||||
bom_item = models.ForeignKey(
|
||||
BomItem,
|
||||
on_delete=models.CASCADE,
|
||||
|
Reference in New Issue
Block a user