From 1258eb0a966b1b6e32eba64f4a4e6be427839777 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Fri, 19 Jan 2024 22:23:11 +0530 Subject: [PATCH] fixes user delete when they have a bookmark #14851 --- netbox/extras/models/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/extras/models/models.py b/netbox/extras/models/models.py index 778d7b68d7d..4ac36a3ac81 100644 --- a/netbox/extras/models/models.py +++ b/netbox/extras/models/models.py @@ -771,7 +771,7 @@ class Bookmark(models.Model): ) user = models.ForeignKey( to=settings.AUTH_USER_MODEL, - on_delete=models.PROTECT + on_delete=models.CASCADE ) objects = RestrictedQuerySet.as_manager()