mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 13:16:33 +00:00
CASCADE group.user
Delete groups when group.user is deleted.
This commit is contained in:
parent
39e002ee13
commit
056150d583
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Group(BookWyrmModel):
|
|||
"""A group of users"""
|
||||
|
||||
name = fields.CharField(max_length=100)
|
||||
user = fields.ForeignKey("User", on_delete=models.PROTECT)
|
||||
user = fields.ForeignKey("User", on_delete=models.CASCADE)
|
||||
description = fields.TextField(blank=True, null=True)
|
||||
privacy = fields.PrivacyField()
|
||||
|
||||
|
|
Loading…
Reference in a new issue