Skip to content

Conversation

@fanshan
Copy link
Contributor

@fanshan fanshan commented Dec 8, 2025

Hello,

Since #20708 relation with a on delete RESTRICT are not deleted in the proper order. Then the error violate not-null constraint occurs and breaks the delete cascade feature.

Fixes: #20948

This PR try to fix object on delete order when a relation was set with the action RESTRICT on delete event.

Since [netbox-community#20708](netbox-community#20708)
relation with a on delete RESTRICT are not deleted in the proper order.
Then the error `violate not-null constraint` occurs and breaks the
delete cascade feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On delete order was breaked with RESTICT action

1 participant