mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Adjust model field (haven't run make migrate yet)
This commit is contained in:
parent
c87af69628
commit
22f8c1d8c7
@ -130,7 +130,7 @@ class StockItem(models.Model):
|
|||||||
uuid = models.UUIDField(default=uuid.uuid4, blank=True, editable=False, help_text='Unique ID for the StockItem')
|
uuid = models.UUIDField(default=uuid.uuid4, blank=True, editable=False, help_text='Unique ID for the StockItem')
|
||||||
|
|
||||||
# The 'master' copy of the part of which this stock item is an instance
|
# The 'master' copy of the part of which this stock item is an instance
|
||||||
part = models.ForeignKey('part.Part', on_delete=models.CASCADE, related_name='locations')
|
part = models.ForeignKey('part.Part', on_delete=models.CASCADE, related_name='locations', help_text='Base part')
|
||||||
|
|
||||||
# The 'supplier part' used in this instance. May be null if no supplier parts are defined the master part
|
# The 'supplier part' used in this instance. May be null if no supplier parts are defined the master part
|
||||||
supplier_part = models.ForeignKey('part.SupplierPart', blank=True, null=True, on_delete=models.SET_NULL)
|
supplier_part = models.ForeignKey('part.SupplierPart', blank=True, null=True, on_delete=models.SET_NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user