2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 02:55:41 +00:00

Merge pull request #168 from SchrodingersGat/supplier-part

Adjust SupplierPart supplier foreignkey
This commit is contained in:
Oliver
2019-04-27 13:29:52 +10:00
committed by GitHub

View File

@ -400,7 +400,9 @@ class SupplierPart(models.Model):
)
supplier = models.ForeignKey(Company, on_delete=models.CASCADE,
related_name='parts')
related_name='parts',
limit_choices_to={'is_supplier': True}
)
SKU = models.CharField(max_length=100, help_text='Supplier stock keeping unit')