mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-04 06:38:16 -06:00
17419 rebuild module bay tree on upgrade
This commit is contained in:
parent
d716d29c0a
commit
b469e07ff9
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user