InvalidMove exception raised when attempting to assign a child MPTT object as a parent #6786

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

Originally created by @jeremystretch on GitHub (Aug 8, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.7

Python version

3.8

Steps to Reproduce

  1. Create a site group named SG1 with no parent
  2. Create a second site group named SG2 as a child under SG1
  3. Attempt to assign SG2 as the parent of SG1

(This affects all nested object types; site group is being used as an example.)

Expected Behavior

The operation should fail with a validation error.

Observed Behavior

An InvalidMove exception is raised.

Originally created by @jeremystretch on GitHub (Aug 8, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.7 ### Python version 3.8 ### Steps to Reproduce 1. Create a site group named SG1 with no parent 2. Create a second site group named SG2 as a child under SG1 3. Attempt to assign SG2 as the parent of SG1 (This affects all nested object types; site group is being used as an example.) ### Expected Behavior The operation should fail with a validation error. ### Observed Behavior An InvalidMove exception is raised.
adam added the type: bugstatus: accepted labels 2025-12-29 19:45:22 +01:00
adam closed this issue 2025-12-29 19:45:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6786