Skip to content

Commit

Permalink
fixes user delete when they have a bookmark #14851
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Jan 19, 2024
1 parent ebf6ce1 commit 1258eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/extras/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1258eb0

Please sign in to comment.