mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-22 11:38:45 -06:00
fix migration
This commit is contained in:
@@ -13,7 +13,8 @@ def rebuild_mptt(apps, schema_editor):
|
||||
class MPTTMeta:
|
||||
order_insertion_by = ('module', 'name',)
|
||||
|
||||
ModuleBay._mptt_meta = mptt.models.MPTTOptions(MPTTMeta, ModuleBay)
|
||||
ModuleBay.MPTTMeta = MPTTMeta
|
||||
ModuleBay._mptt_meta = mptt.models.MPTTOptions(MPTTMeta)
|
||||
|
||||
manager = mptt.managers.TreeManager()
|
||||
manager.model = ModuleBay
|
||||
|
||||
Reference in New Issue
Block a user