fixes user delete when they have a bookmark #14851

This commit is contained in:
Abhimanyu Saharan 2024-01-19 22:23:11 +05:30
parent ebf6ce1b01
commit 1258eb0a96

View File

@ -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()