Cannot delete a user that has bookmarks #9109

Closed
opened 2025-12-29 20:45:33 +01:00 by adam · 1 comment
Owner

Originally created by @NetTech2001 on GitHub (Jan 18, 2024).

Originally assigned to: @abhi1693 on GitHub.

Deployment Type

Self-hosted

NetBox Version

v3.7.0

Python Version

3.8

Steps to Reproduce

Click Admin
Click Users
Attempt to delete a use who has a bookmark defined on their dashboard.

Expected Behavior

Deleting an account should just delete the associated bookmarks, maybe with a warning.

Observed Behavior

Get error that account cannot be deleted because there is a dependancy. The dependancy will be the device they have bookmarked.
Deleting the bookmark allows the account to be deleted.

Originally created by @NetTech2001 on GitHub (Jan 18, 2024). Originally assigned to: @abhi1693 on GitHub. ### Deployment Type Self-hosted ### NetBox Version v3.7.0 ### Python Version 3.8 ### Steps to Reproduce Click Admin Click Users Attempt to delete a use who has a bookmark defined on their dashboard. ### Expected Behavior Deleting an account should just delete the associated bookmarks, maybe with a warning. ### Observed Behavior Get error that account cannot be deleted because there is a dependancy. The dependancy will be the device they have bookmarked. Deleting the bookmark allows the account to be deleted.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 20:45:33 +01:00
adam closed this issue 2025-12-29 20:45:33 +01:00
Author
Owner

@jeffgdotorg commented on GitHub (Jan 19, 2024):

We should change the constraint in this relationship to cascade rather than protect.

@jeffgdotorg commented on GitHub (Jan 19, 2024): We should change the constraint in this relationship to cascade rather than protect.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9109