From 94836e5a37a700baed4311b999009d31b283d45c Mon Sep 17 00:00:00 2001 From: Arthur Date: Wed, 21 Jan 2026 12:55:34 -0800 Subject: [PATCH] fix migration --- netbox/dcim/migrations/0226_modulebay_rebuild_tree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/dcim/migrations/0226_modulebay_rebuild_tree.py b/netbox/dcim/migrations/0226_modulebay_rebuild_tree.py index 2d3cf5b50..1315b701b 100644 --- a/netbox/dcim/migrations/0226_modulebay_rebuild_tree.py +++ b/netbox/dcim/migrations/0226_modulebay_rebuild_tree.py @@ -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