mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-04 12:40:57 +00:00
Change foreign keys to TreeForeignKey
This commit is contained in:
20
InvenTree/stock/migrations/0014_auto_20190908_0918.py
Normal file
20
InvenTree/stock/migrations/0014_auto_20190908_0918.py
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated by Django 2.2.5 on 2019-09-08 09:18
|
||||
|
||||
from django.db import migrations
|
||||
import django.db.models.deletion
|
||||
import mptt.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stock', '0013_auto_20190908_0916'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='stocklocation',
|
||||
name='parent',
|
||||
field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='children', to='stock.StockLocation'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user