<filename>InvenTree/stock/migrations/0012_auto_20190908_0405.py<gh_stars>1-10
# Generated by Django 2.2.5 on 2019-09-08 04:05

from django.db import migrations

from stock import models


def update_tree(apps, schema_editor):
    # Update the StockLocation MPTT model

    models.StockLocation.objects.rebuild()


class Migration(migrations.Migration):

    dependencies = [
        ('stock', '0011_auto_20190908_0404'),
    ]

    operations = [
        migrations.RunPython(update_tree)
    ]

<filename>InvenTree/stock/migrations/0012_auto_20190908_0405.py<gh_stars>1-10
# Generated by Django 2.2.5 on 2019-09-08 04:05

from django.db import migrations

from stock import models


def update_tree(apps, schema_editor):
    # Update the StockLocation MPTT model

    models.StockLocation.objects.rebuild()


class Migration(migrations.Migration):

    dependencies = [
        ('stock', '0011_auto_20190908_0404'),
    ]

    operations = [
        migrations.RunPython(update_tree)
    ]

# Generated by Django 2.2.5 on 2019-09-08 04:05 # Update the StockLocation MPTT model