mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-07 04:12:11 +00:00
db unique_together
This commit is contained in:
@@ -17,9 +17,7 @@ class StockLocation(InvenTreeTree):
|
||||
|
||||
|
||||
class StockItem(models.Model):
|
||||
part = models.ForeignKey(Part,
|
||||
on_delete=models.CASCADE,
|
||||
related_name='locations')
|
||||
part = models.ForeignKey(Part, on_delete=models.CASCADE, related_name='locations')
|
||||
location = models.ForeignKey(StockLocation, on_delete=models.CASCADE)
|
||||
quantity = models.PositiveIntegerField()
|
||||
updated = models.DateField(auto_now=True)
|
||||
|
Reference in New Issue
Block a user