2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

Require Build and StockItem to be unique_together in BuildItem class

This commit is contained in:
Oliver Walters
2019-04-29 22:56:40 +10:00
parent f42116c0d9
commit 17d9d25fb9
3 changed files with 54 additions and 3 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 2.2 on 2019-04-29 12:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('stock', '0009_auto_20190428_0841'),
('build', '0006_auto_20190429_2233'),
]
operations = [
migrations.AlterUniqueTogether(
name='builditem',
unique_together={('build', 'stock_item')},
),
]