Avoid automatically importing Branch & StagedChange models in nbshell #10240

Closed
opened 2025-12-29 21:28:45 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Sep 12, 2024).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v4.1.1

Feature type

Change to existing functionality

Proposed functionality

When invoking a Python shell via manage.py nbshell, do not automatically import the Branch and StagedChange models from extras.

Use case

These models are seldom used, will soon be deprecated (see #17472), and conflict with the Branch model provided by the netbox-branching plugin (which aims to replace the core Branch model).

Database changes

N/A

External dependencies

N/A

Originally created by @jeremystretch on GitHub (Sep 12, 2024). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v4.1.1 ### Feature type Change to existing functionality ### Proposed functionality When invoking a Python shell via `manage.py nbshell`, do not automatically import the Branch and StagedChange models from `extras`. ### Use case These models are seldom used, will soon be deprecated (see #17472), and conflict with the Branch model provided by the [netbox-branching plugin](https://github.com/netboxlabs/netbox-branching) (which aims to replace the core Branch model). ### Database changes N/A ### External dependencies N/A
adam added the status: acceptedtype: featurecomplexity: low labels 2025-12-29 21:28:45 +01:00
adam closed this issue 2025-12-29 21:28:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10240