2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 12:10:59 +00:00

Fix behaviour on deleting parent stock item

This commit is contained in:
Oliver
2021-12-21 01:03:37 +11:00
parent 552ca8e5c4
commit fcb2bb2a46
3 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,20 @@
# Generated by Django 3.2.10 on 2021-12-20 13:54
from django.db import migrations
import django.db.models.deletion
import mptt.fields
class Migration(migrations.Migration):
dependencies = [
('stock', '0072_remove_stockitem_scheduled_for_deletion'),
]
operations = [
migrations.AlterField(
model_name='stockitem',
name='parent',
field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='children', to='stock.stockitem', verbose_name='Parent Stock Item'),
),
]