17419 rebuild module bay tree on upgrade

This commit is contained in:
Arthur Hanson 2024-09-19 14:24:08 -07:00
parent d716d29c0a
commit b469e07ff9

View File

@ -2,7 +2,7 @@ from django.db import migrations
def rebuild_mptt(apps, schema_editor):
ModuleBay = apps.get_model('dcim', 'ModuleBay')
from dcim.models import ModuleBay
ModuleBay.objects.rebuild()