mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 21:18:16 -06:00
fixes user delete when they have a bookmark #14851
This commit is contained in:
parent
ebf6ce1b01
commit
1258eb0a96
@ -771,7 +771,7 @@ class Bookmark(models.Model):
|
|||||||
)
|
)
|
||||||
user = models.ForeignKey(
|
user = models.ForeignKey(
|
||||||
to=settings.AUTH_USER_MODEL,
|
to=settings.AUTH_USER_MODEL,
|
||||||
on_delete=models.PROTECT
|
on_delete=models.CASCADE
|
||||||
)
|
)
|
||||||
|
|
||||||
objects = RestrictedQuerySet.as_manager()
|
objects = RestrictedQuerySet.as_manager()
|
||||||
|
Loading…
Reference in New Issue
Block a user