netbox/netbox/dcim/migrations
Martin Hauser 625c4eb5bb
feat(dcim): Add enabled field to Module and Device bays
Add an `enabled` boolean field to ModuleBay, ModuleBayTemplate,
DeviceBay, and DeviceBayTemplate models. Disabled bays prevent component
installation and display accordingly in the UI. Update serializers,
filters, forms, and tables to support the new field.

Fixes #20152
2026-03-11 20:51:23 +01:00
..
initial_data/module_type_profiles Closes #19571: Create expansion_card.json (#19689) 2025-07-08 08:27:48 -05:00
0001_squashed.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0002_squashed.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0003_squashed_0130.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0131_squashed_0159.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0160_squashed_0166.py Fixes: #18808 - Fix incorrect dependencies on squashed migrations (#18827) 2025-03-07 10:20:34 -08:00
0167_squashed_0182.py Fixes: #18808 - Fix incorrect dependencies on squashed migrations (#18827) 2025-03-07 10:20:34 -08:00
0183_devicetype_exclude_from_utilization.py Fixes: #18808 - Fix incorrect dependencies on squashed migrations (#18827) 2025-03-07 10:20:34 -08:00
0184_protect_child_interfaces.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0185_gfk_indexes.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0186_location_facility.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0187_alter_device_vc_position.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0188_racktype.py chore(core): Remove unused imports in plugins and migrations 2025-10-02 17:11:07 -04:00
0189_moduletype_rack_airflow.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0190_nested_modules.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0191_module_bay_rebuild.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0192_inventoryitem_status.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0193_poweroutlet_color.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0194_charfield_null_choices.py Fixes #19440: Ensure data migrations use the correct database connection 2025-05-08 14:53:52 -04:00
0195_interface_vlan_translation_policy.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0196_qinq_svlan.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0197_natural_sort_collation.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0198_natural_ordering.py Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
0199_macaddress.py Closes #17166: Remove obsolete limit_choices_to argument from ForeignKey & M2M fields 2025-04-03 09:17:20 -04:00
0200_populate_mac_addresses.py Closes #19627: Object change migrators (#19628) 2025-06-05 11:47:59 -04:00
0201_add_power_outlet_status.py For #18352, adds choices, model field, migration 2025-02-26 16:36:09 -06:00
0202_location_comments_region_comments_sitegroup_comments.py Removes banner from new migrations 2025-03-13 15:43:32 -05:00
0203_add_rack_outer_height.py 18417 Add outer_height to racks (#18940) 2025-03-26 08:42:13 -04:00
0203_device_role_nested.py Fixes #18245: Make DeviceRole Hierarchical (#19008) 2025-03-28 14:32:02 -05:00
0204_device_role_rebuild.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0205_moduletypeprofile.py Closes #19377: Introduce config context profiles (#20058) 2025-08-12 15:18:45 -07:00
0206_load_module_type_profiles.py Closes #19571: Create expansion_card.json (#19689) 2025-07-08 08:27:48 -05:00
0207_remove_redundant_indexes.py Closes #18191: Remove duplicate SQL indexes (#19074) 2025-04-03 15:16:57 -05:00
0208_devicerole_uniqueness.py Fixes #19985: Fix ordering of migrations under dcim app (#19992) 2025-07-31 12:06:31 -07:00
0209_device_component_denorm_site_location.py Closes #19977: Denormalize device relationships on component models (#19984) 2025-08-01 15:40:15 -05:00
0210_macaddress_ordering.py Fixes: #19917 - Fix MAC address pagination duplicates by adding 'pk' to model ordering (#19961) 2025-08-04 10:15:05 -04:00
0211_platform_manufacturer_uniqueness.py Merge branch 'main' into feature 2025-08-12 16:03:45 -04:00
0212_interface_tx_power_negative.py Merge branch 'main' into feature 2025-08-12 16:03:45 -04:00
0213_platform_parent.py Merge branch 'main' into feature 2025-08-12 16:03:45 -04:00
0214_platform_rebuild.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0215_rackreservation_status.py Merge branch 'main' into feature 2025-08-12 16:03:45 -04:00
0216_latitude_longitude_validators.py Fixes #20888: Pass decimal values for min/max on latitude and longitude fields (#20892) 2025-12-01 10:35:44 -08:00
0217_poweroutlettemplate_color.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0218_owner.py Merge branch 'main' into feature 2025-11-25 15:25:53 -05:00
0219_devicetype_device_count.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0220_cable_profile.py Additional work for FR #20788 (#20973) 2025-12-15 14:41:07 -06:00
0221_cable_connector_positions.py Additional work for FR #20788 (#20973) 2025-12-15 14:41:07 -06:00
0222_port_mappings.py Fixes #21407: Enable I (isort) and stabilize import ordering (#21458) 2026-02-18 10:41:51 -06:00
0223_frontport_positions.py Closes #20564: Many-to-many pass-through port mappings (#20851) 2025-12-09 09:17:17 -08:00
0224_add_comments_to_organizationalmodel.py merge feature 2025-12-09 10:39:48 -08:00
0225_gfk_indexes.py Closes #20954: Add indexes for GFKs (#21015) 2025-12-18 14:49:00 -08:00
0226_add_mptt_tree_indexes.py Closes #21016: Add missing MPTT tree indexes (#21432) 2026-02-13 17:00:04 +01:00
0226_modulebay_rebuild_tree.py 20911 Fix sorting in dropdown (#21101) 2026-02-20 09:03:47 -05:00
0227_rack_group.py Closes #20961: Introduce RackGroup for physical rack placement (#21624) 2026-03-10 10:19:12 -05:00
0228_cable_bundle.py Closes #20151: Add support for cable bundles (#21636) 2026-03-11 11:43:40 -05:00
0229_devicebay_modulebay_enabled.py feat(dcim): Add enabled field to Module and Device bays 2026-03-11 20:51:23 +01:00
__init__.py Initial push to public repo 2016-03-01 11:23:03 -05:00